mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-31 04:52:05 +00:00
Fix TV active toggle color when on-demand
This commit is contained in:
parent
9b86d129ef
commit
a626722224
@ -145,10 +145,9 @@ private extension ActiveProfileView {
|
||||
var toggleConnectionColor: Color {
|
||||
switch tunnel.status {
|
||||
case .inactive:
|
||||
return theme.activeColor
|
||||
|
||||
return tunnel.currentProfile?.onDemand == true ? theme.disableColor : theme.enableColor
|
||||
default:
|
||||
return theme.errorColor
|
||||
return theme.disableColor
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -64,6 +64,14 @@ public final class Theme: ObservableObject {
|
||||
|
||||
public internal(set) var errorColor: Color = .red
|
||||
|
||||
public var enableColor: Color {
|
||||
activeColor
|
||||
}
|
||||
|
||||
public var disableColor: Color {
|
||||
errorColor
|
||||
}
|
||||
|
||||
public internal(set) var upgradeColor: Color = .orange
|
||||
|
||||
public internal(set) var logoImage = "Logo"
|
||||
|
Loading…
Reference in New Issue
Block a user