We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3462445 commit 5552cc2Copy full SHA for 5552cc2
Sources/ThemeManager.swift
@@ -373,12 +373,16 @@ public class ThemeManager: NSObject {
373
374
/// Convenience method to get the light appearance.
375
@objc public var lightAppearance: NSAppearance? {
376
- return NSAppearance(named: NSAppearance.Name.vibrantLight)
+ return NSAppearance(named: .aqua)
377
}
378
379
/// Convenience method to get the dark appearance.
380
@objc public var darkAppearance: NSAppearance? {
381
- return NSAppearance(named: NSAppearance.Name.vibrantDark)
+ if #available(OSX 10.14, *) {
382
+ return NSAppearance(named: .darkAqua)
383
+ } else {
384
+ return NSAppearance(named: .vibrantDark)
385
+ }
386
387
388
// MARK: -
0 commit comments