Fix night light indicator state

This commit is contained in:
David Heinemeier Hansson
2026-05-29 09:42:24 +02:00
parent c795d52201
commit 6be9b8b6d9
4 changed files with 44 additions and 3 deletions
+1 -1
View File
@@ -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()
}