hide when notif
This commit is contained in:
@@ -66,6 +66,7 @@ JsonObject {
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
property int height: 34
|
property int height: 34
|
||||||
|
property bool hideWhenNotif: false
|
||||||
property Popouts popouts: Popouts {
|
property Popouts popouts: Popouts {
|
||||||
}
|
}
|
||||||
property int rounding: 8
|
property int rounding: 8
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ Singleton {
|
|||||||
function serializeBar(): var {
|
function serializeBar(): var {
|
||||||
return {
|
return {
|
||||||
autoHide: barConfig.autoHide,
|
autoHide: barConfig.autoHide,
|
||||||
|
hideWhenNotif: barConfig.hideWhenNotif,
|
||||||
rounding: barConfig.rounding,
|
rounding: barConfig.rounding,
|
||||||
border: barConfig.border,
|
border: barConfig.border,
|
||||||
height: barConfig.height,
|
height: barConfig.height,
|
||||||
|
|||||||
+1
-1
@@ -129,7 +129,7 @@ Variants {
|
|||||||
Binding {
|
Binding {
|
||||||
property: "bar"
|
property: "bar"
|
||||||
target: visibilities
|
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
|
when: Config.barConfig.autoHide
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user