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

Side by Side Diff: remoting/ios/app/remoting_theme.mm

Issue 2957943002: [CRD iOS] Add the host setup instruction page (Closed)
Patch Set: Resolve Feedback Created 3 years, 5 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if !defined(__has_feature) || !__has_feature(objc_arc) 5 #if !defined(__has_feature) || !__has_feature(objc_arc)
6 #error "This file requires ARC support." 6 #error "This file requires ARC support."
7 #endif 7 #endif
8 8
9 #import "remoting/ios/app/remoting_theme.h" 9 #import "remoting/ios/app/remoting_theme.h"
10 10
(...skipping 28 matching lines...) Expand all
39 blue:249.f / 255.f 39 blue:249.f / 255.f
40 alpha:1.f]; 40 alpha:1.f];
41 }); 41 });
42 return color; 42 return color;
43 } 43 }
44 44
45 + (UIColor*)offlineHostColor { 45 + (UIColor*)offlineHostColor {
46 static UIColor* color; 46 static UIColor* color;
47 static dispatch_once_t onceToken; 47 static dispatch_once_t onceToken;
48 dispatch_once(&onceToken, ^{ 48 dispatch_once(&onceToken, ^{
49 color = [UIColor colorWithRed:0.75f green:0.75f blue:0.75f alpha:1.f]; 49 color = [UIColor colorWithWhite:0.87f alpha:1.f];
50 }); 50 });
51 return color; 51 return color;
52 } 52 }
53 53
54 + (UIColor*)onlineHostColor { 54 + (UIColor*)onlineHostColor {
55 static UIColor* color; 55 static UIColor* color;
56 static dispatch_once_t onceToken; 56 static dispatch_once_t onceToken;
57 dispatch_once(&onceToken, ^{ 57 dispatch_once(&onceToken, ^{
58 color = [UIColor colorWithRed:0.20f green:0.70f blue:0.20f alpha:1.f]; 58 color = [UIColor colorWithRed:0.40f green:0.75f blue:0.40f alpha:1.f];
59 }); 59 });
60 return color; 60 return color;
61 } 61 }
62 62
63 + (UIColor*)buttonTextColor {
64 return UIColor.whiteColor;
65 }
66
67 + (UIColor*)setupListBackgroundColor {
68 static UIColor* color;
69 static dispatch_once_t onceToken;
70 dispatch_once(&onceToken, ^{
71 color = [UIColor colorWithWhite:1.f alpha:0.9f];
72 });
73 return color;
74 }
75
76 + (UIColor*)setupListTextColor {
77 return UIColor.grayColor;
78 }
79
80 + (UIColor*)setupListNumberColor {
81 return UIColor.whiteColor;
82 }
83
63 #pragma mark - Icons 84 #pragma mark - Icons
64 85
65 + (UIImage*)arrowIcon { 86 + (UIImage*)arrowIcon {
66 static UIImage* icon; 87 static UIImage* icon;
67 static dispatch_once_t onceToken; 88 static dispatch_once_t onceToken;
68 dispatch_once(&onceToken, ^{ 89 dispatch_once(&onceToken, ^{
69 icon = [UIImage imageNamed:@"ic_arrow_forward_white"]; 90 icon = [UIImage imageNamed:@"ic_arrow_forward_white"];
70 }); 91 });
71 return icon; 92 return icon;
72 } 93 }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 + (UIImage*)settingsIcon { 176 + (UIImage*)settingsIcon {
156 static UIImage* icon; 177 static UIImage* icon;
157 static dispatch_once_t onceToken; 178 static dispatch_once_t onceToken;
158 dispatch_once(&onceToken, ^{ 179 dispatch_once(&onceToken, ^{
159 icon = [UIImage imageNamed:@"Settings"]; 180 icon = [UIImage imageNamed:@"Settings"];
160 }); 181 });
161 return icon; 182 return icon;
162 } 183 }
163 184
164 @end 185 @end
OLDNEW
« 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