Decrease status alpha when profile is inactive

Color-blind friendly, as per iTunes review.
This commit is contained in:
Davide De Rosa 2021-01-24 22:21:26 +01:00
parent e833f64faf
commit 05d2c4bfc1
1 changed files with 2 additions and 0 deletions

View File

@ -555,6 +555,7 @@ class StatusMenu: NSObject {
} else {
statusItem.button?.toolTip = nil
}
statusItem.button?.alphaValue = 1.0
switch vpn.status ?? .disconnected {
case .connected:
@ -567,6 +568,7 @@ class StatusMenu: NSObject {
case .disconnected:
statusItem.button?.image = imageStatusInactive
statusItem.button?.alphaValue = 0.5
case .disconnecting:
statusItem.button?.image = imageStatusInProgress