Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: remoting/ios/app/remoting_theme.mm

Issue 2929663002: [CRD iOS] Fix color scheme and other UI issues (Closed)
Patch Set: resolve feedback Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/ios/app/remoting_theme.h ('k') | remoting/ios/app/remoting_view_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/ios/app/remoting_theme.mm
diff --git a/remoting/ios/app/remoting_theme.mm b/remoting/ios/app/remoting_theme.mm
new file mode 100644
index 0000000000000000000000000000000000000000..06c269efce8f7d3b58b2233795573cbd65093df8
--- /dev/null
+++ b/remoting/ios/app/remoting_theme.mm
@@ -0,0 +1,49 @@
+// 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_theme.h"
+
+@implementation RemotingTheme
+
++ (UIColor*)hostListBackgroundColor {
+ static UIColor* color;
+ static dispatch_once_t onceToken;
+ dispatch_once(&onceToken, ^{
+ color = [UIColor colorWithRed:0.11f green:0.23f blue:0.66f alpha:1.f];
+ });
+ return color;
+}
+
++ (UIColor*)connectionViewBackgroundColor {
+ static UIColor* color;
+ static dispatch_once_t onceToken;
+ dispatch_once(&onceToken, ^{
+ color = [UIColor colorWithRed:0.06f green:0.12f blue:0.33f alpha:1.f];
+ });
+ return color;
+}
+
++ (UIColor*)onlineHostColor {
+ static UIColor* color;
+ static dispatch_once_t onceToken;
+ dispatch_once(&onceToken, ^{
+ color = [UIColor colorWithRed:0.20f green:0.70f blue:0.20f alpha:1.f];
+ });
+ return color;
+}
+
++ (UIColor*)offlineHostColor {
+ static UIColor* color;
+ static dispatch_once_t onceToken;
+ dispatch_once(&onceToken, ^{
+ color = [UIColor colorWithRed:0.75f green:0.75f blue:0.75f alpha:1.f];
+ });
+ return color;
+}
+
+@end
« no previous file with comments | « remoting/ios/app/remoting_theme.h ('k') | remoting/ios/app/remoting_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698