You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-ios/SignalMessaging/categories/Theme.h

53 lines
1.5 KiB
C

7 years ago
//
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
7 years ago
//#ifdef DEBUG
7 years ago
#define THEME_ENABLED
7 years ago
//#endif
7 years ago
7 years ago
extern NSString *const ThemeDidChangeNotification;
7 years ago
@interface Theme : NSObject
- (instancetype)init NS_UNAVAILABLE;
7 years ago
@property (class, readonly, nonatomic) BOOL isDarkThemeEnabled;
7 years ago
#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;
7 years ago
@property (class, readonly, nonatomic) UIColor *offBackgroundColor;
7 years ago
@property (class, readonly, nonatomic) UIColor *middleGrayColor;
7 years ago
#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;
7 years ago
@property (class, readonly, nonatomic) UIColor *conversationButtonBackgroundColor;
@property (class, readonly, nonatomic) UIColor *cellSelectedColor;
7 years ago
#pragma mark -
7 years ago
@property (class, readonly, nonatomic) UIBarStyle barStyle;
@property (class, readonly, nonatomic) UISearchBarStyle searchBarStyle;
@property (class, readonly, nonatomic) UIColor *searchBarBackgroundColor;
7 years ago
7 years ago
@end
NS_ASSUME_NONNULL_END