hide when notif

This commit is contained in:
2026-03-23 21:56:23 +01:00
parent a67e3383e8
commit f4d5f54f9a
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -66,6 +66,7 @@ JsonObject {
},
]
property int height: 34
property bool hideWhenNotif: false
property Popouts popouts: Popouts {
}
property int rounding: 8
+1
View File
@@ -84,6 +84,7 @@ Singleton {
function serializeBar(): var {
return {
autoHide: barConfig.autoHide,
hideWhenNotif: barConfig.hideWhenNotif,
rounding: barConfig.rounding,
border: barConfig.border,
height: barConfig.height,
+1 -1
View File
@@ -129,7 +129,7 @@ Variants {
Binding {
property: "bar"
target: visibilities
value: visibilities.sidebar || visibilities.dashboard || visibilities.osd || visibilities.notif || visibilities.resources || visibilities.settings || bar.isHovered
value: visibilities.sidebar || visibilities.dashboard || visibilities.osd || (!Config.barConfig.hideWhenNotif && visibilities.notif) || visibilities.resources || visibilities.settings || bar.isHovered
when: Config.barConfig.autoHide
}