|
|
@ -198,7 +198,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
#ifdef THEME_ENABLED
|
|
|
|
#ifdef THEME_ENABLED
|
|
|
|
OWSTableSection *themeSection = [OWSTableSection new];
|
|
|
|
OWSTableSection *themeSection = [OWSTableSection new];
|
|
|
|
themeSection.headerTitle = NSLocalizedString(@"THEME_SECTION", nil);
|
|
|
|
themeSection.headerTitle = NSLocalizedString(@"THEME_SECTION", nil);
|
|
|
|
[themeSection addItem:[OWSTableItem switchItemWithText:NSLocalizedString(@"SETTINGS_ADVANCED_THEME", @"")
|
|
|
|
[themeSection addItem:[OWSTableItem switchItemWithText:NSLocalizedString(@"SETTINGS_ADVANCED_DARK_THEME",
|
|
|
|
|
|
|
|
@"Label for setting that enables dark theme.")
|
|
|
|
isOn:[Theme isDarkThemeEnabled]
|
|
|
|
isOn:[Theme isDarkThemeEnabled]
|
|
|
|
target:weakSelf
|
|
|
|
target:weakSelf
|
|
|
|
selector:@selector(didToggleThemeSwitch:)]];
|
|
|
|
selector:@selector(didToggleThemeSwitch:)]];
|
|
|
@ -289,6 +290,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[Theme setIsDarkThemeEnabled:sender.isOn];
|
|
|
|
[Theme setIsDarkThemeEnabled:sender.isOn];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[self updateTableContents];
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: Notify and refresh.
|
|
|
|
// TODO: Notify and refresh.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|