IME // Disable dark mode conditioning in macOS 10.13 and earlier.

This commit is contained in:
ShikiSuen 2022-09-09 20:11:32 +08:00
parent 494bca4950
commit ff7dbefa01
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ public enum IME {
// MARK: - System Dark Mode Status Detector. // MARK: - System Dark Mode Status Detector.
static var isDarkMode: Bool { static var isDarkMode: Bool {
if #unavailable(macOS 10.14) { return false }
if #available(macOS 10.15, *) { if #available(macOS 10.15, *) {
let appearanceDescription = NSApplication.shared.effectiveAppearance.debugDescription let appearanceDescription = NSApplication.shared.effectiveAppearance.debugDescription
.lowercased() .lowercased()