Skip to content

Commit 1cb7a65

Browse files
authored
Merge pull request #29 from luckymarmot/fix-misc-macos-mojave
Fix misc macOS Mojave
2 parents 9e26356 + 5552cc2 commit 1cb7a65

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,6 @@ Packages/
3535

3636
# Carthage
3737
Carthage/Checkouts
38-
Carthage/Build
38+
Carthage/Build
39+
40+
Demo/Index

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)