Skip to content

Commit

Permalink
Merge pull request #29 from luckymarmot/fix-misc-macos-mojave
Browse files Browse the repository at this point in the history
Fix misc macOS Mojave
  • Loading branch information
nfgrilo authored Nov 18, 2018
2 parents 9e26356 + 5552cc2 commit 1cb7a65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ Packages/

# Carthage
Carthage/Checkouts
Carthage/Build
Carthage/Build

Demo/Index
8 changes: 6 additions & 2 deletions Sources/ThemeManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,16 @@ public class ThemeManager: NSObject {

/// Convenience method to get the light appearance.
@objc public var lightAppearance: NSAppearance? {
return NSAppearance(named: NSAppearance.Name.vibrantLight)
return NSAppearance(named: .aqua)
}

/// Convenience method to get the dark appearance.
@objc public var darkAppearance: NSAppearance? {
return NSAppearance(named: NSAppearance.Name.vibrantDark)
if #available(OSX 10.14, *) {
return NSAppearance(named: .darkAqua)
} else {
return NSAppearance(named: .vibrantDark)
}
}

// MARK: -
Expand Down

0 comments on commit 1cb7a65

Please sign in to comment.