Skip to content

Commit

Permalink
Fixed #18. Fixed #19.
Browse files Browse the repository at this point in the history
  • Loading branch information
macmade committed Sep 20, 2021
1 parent 7dbe258 commit 3996d91
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Hot/Classes/ApplicationDelegate.swift
Expand Up @@ -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
}
Expand Down

0 comments on commit 3996d91

Please sign in to comment.