Clean up ahead of PR.

This commit is contained in:
Matthew Chen 2018-07-13 09:59:33 -04:00
parent 48975eaac8
commit b90e406a57
3 changed files with 8 additions and 6 deletions

View File

@ -198,7 +198,8 @@ NS_ASSUME_NONNULL_BEGIN
#ifdef THEME_ENABLED
OWSTableSection *themeSection = [OWSTableSection new];
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]
target:weakSelf
selector:@selector(didToggleThemeSwitch:)]];
@ -289,6 +290,8 @@ NS_ASSUME_NONNULL_BEGIN
{
[Theme setIsDarkThemeEnabled:sender.isOn];
[self updateTableContents];
// TODO: Notify and refresh.
}
#endif

View File

@ -805,13 +805,12 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations
{
UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:kArchivedConversationsReuseIdentifier];
OWSAssert(cell);
[OWSTableItem configureCell:cell];
for (UIView *subview in cell.contentView.subviews) {
[subview removeFromSuperview];
}
cell.backgroundColor = Theme.backgroundColor;
UIImage *disclosureImage = [UIImage imageNamed:(CurrentAppContext().isRTL ? @"NavBarBack" : @"NavBarBackRTL")];
OWSAssert(disclosureImage);
UIImageView *disclosureImageView = [UIImageView new];

View File

@ -1889,15 +1889,15 @@
/* Table header for the 'censorship circumvention' section. */
"SETTINGS_ADVANCED_CENSORSHIP_CIRCUMVENTION_HEADER" = "Censorship Circumvention";
/* Label for setting that enables dark theme. */
"SETTINGS_ADVANCED_DARK_THEME" = "Dark Theme";
/* No comment provided by engineer. */
"SETTINGS_ADVANCED_DEBUGLOG" = "Enable Debug Log";
/* No comment provided by engineer. */
"SETTINGS_ADVANCED_SUBMIT_DEBUGLOG" = "Submit Debug Log";
/* No comment provided by engineer. */
"SETTINGS_ADVANCED_THEME" = "Theme";
/* No comment provided by engineer. */
"SETTINGS_ADVANCED_TITLE" = "Advanced";