From 3996d916d4a50e0eff602d7f2aa7a8d7f16d7c92 Mon Sep 17 00:00:00 2001 From: macmade Date: Mon, 20 Sep 2021 19:02:48 +0200 Subject: [PATCH] Fixed #18. Fixed #19. --- Hot/Classes/ApplicationDelegate.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Hot/Classes/ApplicationDelegate.swift b/Hot/Classes/ApplicationDelegate.swift index 3879d8b..cede73f 100644 --- a/Hot/Classes/ApplicationDelegate.swift +++ b/Hot/Classes/ApplicationDelegate.swift @@ -197,9 +197,14 @@ class ApplicationDelegate: NSObject, NSApplicationDelegate { let color: NSColor = { + if UserDefaults.standard.bool( forKey: "colorizeStatusItemText" ) == false + { + return .controlTextColor + } + let limit = self.infoViewController?.speedLimit ?? 100 - if limit > 0 && limit < 60 && UserDefaults.standard.bool( forKey: "colorizeStatusItemText" ) + if limit > 0 && limit < 60 { return .orange }