Skip to content

Commit 5552cc2

Browse files
committed
Switch to Aqua and Dark Aqua appearances
1 parent 3462445 commit 5552cc2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Sources/ThemeManager.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,16 @@ public class ThemeManager: NSObject {
373373

374374
/// Convenience method to get the light appearance.
375375
@objc public var lightAppearance: NSAppearance? {
376-
return NSAppearance(named: NSAppearance.Name.vibrantLight)
376+
return NSAppearance(named: .aqua)
377377
}
378378

379379
/// Convenience method to get the dark appearance.
380380
@objc public var darkAppearance: NSAppearance? {
381-
return NSAppearance(named: NSAppearance.Name.vibrantDark)
381+
if #available(OSX 10.14, *) {
382+
return NSAppearance(named: .darkAqua)
383+
} else {
384+
return NSAppearance(named: .vibrantDark)
385+
}
382386
}
383387

384388
// MARK: -

0 commit comments

Comments
 (0)