| OLD | NEW |
| (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 |
| OLD | NEW |