IME // Turn isDarkMode() from func to dynamic var.
This commit is contained in:
parent
75e93d0920
commit
acc506aa45
|
@ -102,7 +102,7 @@ public enum IME {
|
|||
|
||||
// MARK: - System Dark Mode Status Detector.
|
||||
|
||||
static func isDarkMode() -> Bool {
|
||||
static var isDarkMode: Bool {
|
||||
if #available(macOS 10.15, *) {
|
||||
let appearanceDescription = NSApplication.shared.effectiveAppearance.debugDescription
|
||||
.lowercased()
|
||||
|
|
Loading…
Reference in New Issue