mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Try conditional modifier for preferredColorScheme
This commit is contained in:
@@ -407,13 +407,13 @@ private extension AppDelegate {
|
||||
}
|
||||
|
||||
func updateUserInterfaceStyle() {
|
||||
switch AppDefaults.shared.userInterfaceColorPalette {
|
||||
case .automatic:
|
||||
window?.overrideUserInterfaceStyle = .unspecified
|
||||
case .light:
|
||||
window?.overrideUserInterfaceStyle = .light
|
||||
case .dark:
|
||||
window?.overrideUserInterfaceStyle = .dark
|
||||
}
|
||||
// switch AppDefaults.shared.userInterfaceColorPalette {
|
||||
// case .automatic:
|
||||
// window?.overrideUserInterfaceStyle = .unspecified
|
||||
// case .light:
|
||||
// window?.overrideUserInterfaceStyle = .light
|
||||
// case .dark:
|
||||
// window?.overrideUserInterfaceStyle = .dark
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ struct ColorPaletteContainerView: View {
|
||||
if let colorPalette = UserInterfaceColorPalette(rawValue: index) {
|
||||
appSettings.userInterfaceColorPalette = colorPalette
|
||||
}
|
||||
presentationMode.wrappedValue.dismiss()
|
||||
self.presentationMode.wrappedValue.dismiss()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user