mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
#1727 (settings dialog should match theme)
- The Preferences now uses light or dark mode to match the theme.
This commit is contained in:
parent
f9d27694e0
commit
47eb97f540
2 changed files with 4 additions and 0 deletions
|
@ -215,6 +215,8 @@ CGRect IASKCGRectSwap(CGRect rect);
|
|||
[dc addObserver:self selector:@selector(didChangeSettingViaIASK:) name:kIASKAppSettingChanged object:nil];
|
||||
[self userDefaultsDidChange]; // force update in case of changes while we were hidden
|
||||
}
|
||||
|
||||
self.overrideUserInterfaceStyle = ThemeManager.shared.isDarkTheme ? UIUserInterfaceStyleDark : UIUserInterfaceStyleLight;
|
||||
}
|
||||
|
||||
- (CGSize)preferredContentSize {
|
||||
|
|
|
@ -65,6 +65,8 @@
|
|||
_selection.tableView = _tableView;
|
||||
}
|
||||
self.didFirstLayout = NO;
|
||||
self.overrideUserInterfaceStyle = ThemeManager.shared.isDarkTheme ? UIUserInterfaceStyleDark : UIUserInterfaceStyleLight;
|
||||
|
||||
[super viewWillAppear:animated];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue