session-ios/SignalMessaging/categories/Theme.h

60 lines
1.9 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-09-19 16:08:27 +02:00
#define THEME_ENABLED
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-08-16 17:31:55 +02:00
@property (class, readonly, nonatomic) UIColor *placeholderColor;
@property (class, readonly, nonatomic) UIColor *hairlineColor;
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 -
@property (class, readonly, nonatomic) UIBarStyle barStyle;
@property (class, readonly, nonatomic) UIColor *searchFieldBackgroundColor;
@property (class, readonly, nonatomic) UIBlurEffect *barBlurEffect;
@property (class, readonly, nonatomic) UIKeyboardAppearance keyboardAppearance;
2018-07-20 21:47:35 +02:00
#pragma mark -
@property (class, readonly, nonatomic) UIColor *toastForegroundColor;
@property (class, readonly, nonatomic) UIColor *toastBackgroundColor;
2018-07-13 15:50:49 +02:00
@end
NS_ASSUME_NONNULL_END