diff options
author | Siqi LIU <me@siqi.fr> | 2013-08-29 17:30:29 +0200 |
---|---|---|
committer | Siqi LIU <me@siqi.fr> | 2013-08-30 10:58:37 +0200 |
commit | 1a77fc15dd4d69b71255aa13a3970197c6d978b2 (patch) | |
tree | 6116e797edb0901753cd2c45c65c04fc75c3c2f0 /ios | |
parent | 295759c05395099e564e263b98e5e4a38a9a9bc4 (diff) |
change appearance proxy for pageControl
Diffstat (limited to 'ios')
-rw-r--r-- | ios/iosremote/iosremote/AppDelegate.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ios/iosremote/iosremote/AppDelegate.m b/ios/iosremote/iosremote/AppDelegate.m index 0d89754415cb..0e616379375f 100644 --- a/ios/iosremote/iosremote/AppDelegate.m +++ b/ios/iosremote/iosremote/AppDelegate.m @@ -9,6 +9,12 @@ #import "AppDelegate.h" #import "ControlVariables.h" #import "UINavigationController+Theme.h" + +#define UIColorFromRGB(rgbValue) [UIColor \ +colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \ +green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \ +blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0] + @implementation AppDelegate @synthesize window = _window; @@ -43,6 +49,10 @@ forKeys: [NSArray arrayWithObjects:UITextAttributeFont, UITextAttributeTextColor, UITextAttributeTextShadowColor, nil]]; [[UIBarButtonItem appearance] setTitleTextAttributes:attributes forState:UIControlStateHighlighted]; + + UIPageControl *pageControl = [UIPageControl appearance]; + pageControl.pageIndicatorTintColor = UIColorFromRGB(0x2980b9); + pageControl.currentPageIndicatorTintColor = UIColorFromRGB(0x1abc9c); return YES; } |