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

Side by Side 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 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #if !defined(__has_feature) || !__has_feature(objc_arc)
6 #error "This file requires ARC support."
7 #endif
8
9 #import "remoting/ios/app/remoting_theme.h"
10
11 @implementation RemotingTheme
12
13 + (UIColor*)hostListBackgroundColor {
14 static UIColor* color;
15 static dispatch_once_t onceToken;
16 dispatch_once(&onceToken, ^{
17 color = [UIColor colorWithRed:0.11f green:0.23f blue:0.66f alpha:1.f];
18 });
19 return color;
20 }
21
22 + (UIColor*)connectionViewBackgroundColor {
23 static UIColor* color;
24 static dispatch_once_t onceToken;
25 dispatch_once(&onceToken, ^{
26 color = [UIColor colorWithRed:0.06f green:0.12f blue:0.33f alpha:1.f];
27 });
28 return color;
29 }
30
31 + (UIColor*)onlineHostColor {
32 static UIColor* color;
33 static dispatch_once_t onceToken;
34 dispatch_once(&onceToken, ^{
35 color = [UIColor colorWithRed:0.20f green:0.70f blue:0.20f alpha:1.f];
36 });
37 return color;
38 }
39
40 + (UIColor*)offlineHostColor {
41 static UIColor* color;
42 static dispatch_once_t onceToken;
43 dispatch_once(&onceToken, ^{
44 color = [UIColor colorWithRed:0.75f green:0.75f blue:0.75f alpha:1.f];
45 });
46 return color;
47 }
48
49 @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