Fix night light indicator state
This commit is contained in:
1 parent
c795d52201
commit
6be9b8b6d9
4 files changed
+44
-3
No files matched your search
@@ -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