session-ios/SignalMessaging/categories/Theme.h

55 lines
1.6 KiB
C
Raw Normal View History

2018-07-13 15:50:49 +02:00
//
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
2018-08-08 22:01:17 +02:00
//#ifdef DEBUG
2018-07-13 15:50:49 +02:00
#define THEME_ENABLED
2018-08-08 22:01:17 +02:00
//#endif
2018-07-13 15:50:49 +02:00
2018-07-23 21:03:07 +02:00
extern NSString *const ThemeDidChangeNotification;
2018-07-13 15:50:49 +02:00
@interface Theme : NSObject
- (instancetype)init NS_UNAVAILABLE;
2018-08-08 15:29:23 +02:00
@property (class, readonly, nonatomic) BOOL isDarkThemeEnabled;
2018-07-13 15:50:49 +02:00
#ifdef THEME_ENABLED
+ (void)setIsDarkThemeEnabled:(BOOL)value;
#endif
@property (class, readonly, nonatomic) UIColor *backgroundColor;
@property (class, readonly, nonatomic) UIColor *primaryColor;
@property (class, readonly, nonatomic) UIColor *secondaryColor;
@property (class, readonly, nonatomic) UIColor *boldColor;
2018-08-08 15:47:54 +02:00
@property (class, readonly, nonatomic) UIColor *offBackgroundColor;
2018-08-08 17:07:05 +02:00
@property (class, readonly, nonatomic) UIColor *middleGrayColor;
2018-07-13 15:50:49 +02:00
#pragma mark - Global App Colors
@property (class, readonly, nonatomic) UIColor *navbarBackgroundColor;
@property (class, readonly, nonatomic) UIColor *navbarIconColor;
@property (class, readonly, nonatomic) UIColor *navbarTitleColor;
@property (class, readonly, nonatomic) UIColor *toolbarBackgroundColor;
2018-07-23 21:36:39 +02:00
@property (class, readonly, nonatomic) UIColor *conversationButtonBackgroundColor;
@property (class, readonly, nonatomic) UIColor *cellSelectedColor;
2018-08-10 00:43:25 +02:00
@property (class, readonly, nonatomic) UIColor *cellSeparatorColor;
2018-07-20 21:47:35 +02:00
#pragma mark -
2018-08-07 23:12:16 +02:00
@property (class, readonly, nonatomic) UIBarStyle barStyle;
2018-08-08 23:49:50 +02:00
@property (class, readonly, nonatomic) UISearchBarStyle searchBarStyle;
@property (class, readonly, nonatomic) UIColor *searchBarBackgroundColor;
@property (class, readonly, nonatomic) UIBlurEffect *barBlurEffect;
2018-07-20 21:47:35 +02:00
2018-07-13 15:50:49 +02:00
@end
NS_ASSUME_NONNULL_END