Fix night light indicator state
This commit is contained in:
@@ -22,7 +22,7 @@ WidgetButton {
|
||||
}
|
||||
|
||||
function syncIndicatorOpacity() {
|
||||
root.opacity = !belongsInBlock ? 0 : (active ? 1 : (inactiveRevealed ? 0.45 : 0))
|
||||
root.opacity = !belongsInBlock ? 0 : (effectiveActive ? 1 : (inactiveRevealed ? 0.45 : 0))
|
||||
}
|
||||
|
||||
Component.onCompleted: syncIndicatorOpacity()
|
||||
|
||||
@@ -23,6 +23,7 @@ BarIndicator {
|
||||
}
|
||||
|
||||
function toggle() {
|
||||
nightlight = !nightlight
|
||||
if (root.bar) root.bar.run("omarchy-toggle-nightlight")
|
||||
refreshTimer.restart()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user