Remove dark theme feature flag.

This commit is contained in:
Matthew Chen 2018-09-27 15:41:43 -04:00
parent fbeb07d2e4
commit 1e82caed03
2 changed files with 0 additions and 8 deletions

View File

@ -195,7 +195,6 @@ NS_ASSUME_NONNULL_BEGIN
}
[contents addSection:censorshipSection];
#ifdef THEME_ENABLED
OWSTableSection *themeSection = [OWSTableSection new];
themeSection.headerTitle = NSLocalizedString(@"THEME_SECTION", nil);
[themeSection addItem:[OWSTableItem switchItemWithText:NSLocalizedString(@"SETTINGS_ADVANCED_DARK_THEME",
@ -204,7 +203,6 @@ NS_ASSUME_NONNULL_BEGIN
target:weakSelf
selector:@selector(didToggleThemeSwitch:)]];
[contents addSection:themeSection];
#endif
self.contents = contents;
}
@ -287,14 +285,12 @@ NS_ASSUME_NONNULL_BEGIN
[self updateTableContents];
}
#ifdef THEME_ENABLED
- (void)didToggleThemeSwitch:(UISwitch *)sender
{
[Theme setIsDarkThemeEnabled:sender.isOn];
[self updateTableContents];
}
#endif
@end

View File

@ -7,8 +7,6 @@
NS_ASSUME_NONNULL_BEGIN
#define THEME_ENABLED
extern NSString *const ThemeDidChangeNotification;
@interface Theme : NSObject
@ -17,9 +15,7 @@ extern NSString *const ThemeDidChangeNotification;
@property (class, readonly, nonatomic) BOOL isDarkThemeEnabled;
#ifdef THEME_ENABLED
+ (void)setIsDarkThemeEnabled:(BOOL)value;
#endif
@property (class, readonly, nonatomic) UIColor *backgroundColor;
@property (class, readonly, nonatomic) UIColor *primaryColor;