mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-28 10:30:14 +01:00
On macOS, just change the colorScheme
This commit is contained in:
parent
b739f6dd61
commit
19d4afc467
@ -134,9 +134,13 @@ final class AppDefaults: ObservableObject {
|
|||||||
}
|
}
|
||||||
set {
|
set {
|
||||||
AppDefaults.store.set(newValue.rawValue, forKey: Key.userInterfaceColorPalette)
|
AppDefaults.store.set(newValue.rawValue, forKey: Key.userInterfaceColorPalette)
|
||||||
|
#if os(macOS)
|
||||||
|
self.objectWillChange.send()
|
||||||
|
#else
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5, execute: {
|
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5, execute: {
|
||||||
self.objectWillChange.send()
|
self.objectWillChange.send()
|
||||||
})
|
})
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user