fix: render light palettes with matching appearance
This commit is contained in:
@@ -55,11 +55,11 @@ final class ThemeObservation {
|
||||
nonisolated(unsafe) private let token: NSObjectProtocol
|
||||
|
||||
init(_ apply: @escaping @MainActor () -> Void) {
|
||||
apply()
|
||||
ThemePalette.appearance.performAsCurrentDrawingAppearance(apply)
|
||||
token = NotificationCenter.default.addObserver(
|
||||
forName: ThemePalette.didChangeNotification, object: nil, queue: .main
|
||||
) { _ in
|
||||
MainActor.assumeIsolated { apply() }
|
||||
MainActor.assumeIsolated { ThemePalette.appearance.performAsCurrentDrawingAppearance(apply) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user