Chromium Code Reviews| Index: remoting/ios/app/remoting_styles.mm |
| diff --git a/remoting/ios/app/remoting_styles.mm b/remoting/ios/app/remoting_styles.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9b29e52a0db239132a0bfe97aab393eb439857c1 |
| --- /dev/null |
| +++ b/remoting/ios/app/remoting_styles.mm |
| @@ -0,0 +1,38 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#if !defined(__has_feature) || !__has_feature(objc_arc) |
| +#error "This file requires ARC support." |
| +#endif |
| + |
| +#import "remoting/ios/app/remoting_styles.h" |
| + |
| +static UIColor* kHostListBackgroundColor = |
|
nicholss
2017/06/07 21:01:42
There is a more direct way to do this that would h
Yuwei
2017/06/07 22:25:22
Done.
|
| + [UIColor colorWithRed:0.11f green:0.23f blue:0.66f alpha:1.f]; |
| +static UIColor* kOnlineHostColor = |
| + [UIColor colorWithRed:0.20f green:0.70f blue:0.20f alpha:1.f]; |
| +static UIColor* kOfflineHostColor = |
| + [UIColor colorWithRed:0.75f green:0.75f blue:0.75f alpha:1.f]; |
| +static UIColor* kConnectionViewBackgroundColor = |
| + [UIColor colorWithRed:0.06f green:0.12f blue:0.33f alpha:1.f]; |
| + |
| +@implementation RemotingStyles |
| + |
| ++ (UIColor*)hostListBackgroundColor { |
| + return kHostListBackgroundColor; |
| +} |
| + |
| ++ (UIColor*)connectionViewBackgroundColor { |
| + return kConnectionViewBackgroundColor; |
| +} |
| + |
| ++ (UIColor*)onlineHostColor { |
| + return kOnlineHostColor; |
| +} |
| + |
| ++ (UIColor*)offlineHostColor { |
| + return kOfflineHostColor; |
| +} |
| + |
| +@end |