Prepare Dark Theme

Observe user interface theme change.

https://github.com/vector-im/riot-meta/issues/22
This commit is contained in:
Giom Foret
2017-07-21 11:28:17 +02:00
parent 45491d73c9
commit 4e5fa4ef5e
29 changed files with 795 additions and 70 deletions
+25 -7
View File
@@ -17,6 +17,11 @@
#import <MatrixKit/MatrixKit.h>
/**
Posted when the user interface theme has been changed.
*/
extern NSString *const kRiotDesignValuesDidChangeThemeNotification;
/**
Convert a RGB hexadecimal value into a UIColor.
*/
@@ -26,10 +31,16 @@
blue:((float)((rgbValue & 0x0000FF) >> 0))/255.0 \
alpha:1.0]
#pragma mark - Riot Theme Colors (depends on the selected theme light or dark).
extern UIColor *kRiotPrimaryBgColor;
extern UIColor *kRiotSecondaryBgColor;
extern UIColor *kRiotPrimaryTextColor;
extern UIColor *kRiotSecondaryTextColor; //subtitle, sending messages color.
extern UIColor *kRiotTopicTextColor;
#pragma mark - Riot Colors
extern UIColor *kRiotColorGreen;
extern UIColor *kRiotColorLightGreen;
extern UIColor *kRiotColorLightGrey;
extern UIColor *kRiotColorLightOrange;
extern UIColor *kRiotColorSilver;
extern UIColor *kRiotColorPinkRed;
@@ -37,24 +48,31 @@ extern UIColor *kRiotColorRed;
extern UIColor *kRiotColorIndigo;
extern UIColor *kRiotColorOrange;
#pragma mark - Riot Background Colors
extern UIColor *kRiotBgColorWhite;
extern UIColor *kRiotBgColorBlack;
extern UIColor *kRiotColorLightGrey;
extern UIColor *kRiotColorLightBlack;
#pragma mark - Riot Text Colors
extern UIColor *kRiotTextColorBlack;
extern UIColor *kRiotTextColorDarkGray;
extern UIColor *kRiotTextColorGray;
#pragma mark - Riot Navigation Bar Tint Color
extern UIColor *kRiotNavBarTintColor;
extern UIColor *kRiotTextColorWhite;
extern UIColor *kRiotTextColorDarkWhite;
#pragma mark - Riot Standard Room Member Power Level
extern NSInteger const kRiotRoomModeratorLevel;
extern NSInteger const kRiotRoomAdminLevel;
#pragma mark - Riot
extern UIStatusBarStyle kRiotDesignStatusBarStyle;
/**
`RiotDesignValues` class manages the Riot design parameters
*/
@interface RiotDesignValues : NSObject
// to update the navigation bar buttons color
// [[AppDelegate theDelegate] recentsNavigationController].navigationBar.tintColor = [UIColor greenColor];
@end