forked from Shinonome/dots-hyprland
bar autohide: rename enabled -> enable for consistency
This commit is contained in:
@@ -50,7 +50,7 @@ Scope {
|
|||||||
Connections {
|
Connections {
|
||||||
target: GlobalStates
|
target: GlobalStates
|
||||||
function onSuperDownChanged() {
|
function onSuperDownChanged() {
|
||||||
if (!Config?.options.bar.autoHide.showWhenPressingSuper.enabled) return;
|
if (!Config?.options.bar.autoHide.showWhenPressingSuper.enable) return;
|
||||||
if (GlobalStates.superDown) showBarTimer.restart();
|
if (GlobalStates.superDown) showBarTimer.restart();
|
||||||
else {
|
else {
|
||||||
showBarTimer.stop();
|
showBarTimer.stop();
|
||||||
@@ -61,7 +61,7 @@ Scope {
|
|||||||
property bool superShow: false
|
property bool superShow: false
|
||||||
property bool mustShow: hoverRegion.containsMouse || superShow
|
property bool mustShow: hoverRegion.containsMouse || superShow
|
||||||
exclusionMode: ExclusionMode.Ignore
|
exclusionMode: ExclusionMode.Ignore
|
||||||
exclusiveZone: (Config?.options.bar.autoHide.enabled && (!mustShow || !Config?.options.bar.autoHide.pushWindows)) ? 0 :
|
exclusiveZone: (Config?.options.bar.autoHide.enable && (!mustShow || !Config?.options.bar.autoHide.pushWindows)) ? 0 :
|
||||||
Appearance.sizes.baseBarHeight + (Config.options.bar.cornerStyle === 1 ? Appearance.sizes.hyprlandGapsOut : 0)
|
Appearance.sizes.baseBarHeight + (Config.options.bar.cornerStyle === 1 ? Appearance.sizes.hyprlandGapsOut : 0)
|
||||||
WlrLayershell.namespace: "quickshell:bar"
|
WlrLayershell.namespace: "quickshell:bar"
|
||||||
implicitHeight: Appearance.sizes.barHeight + Appearance.rounding.screenRounding
|
implicitHeight: Appearance.sizes.barHeight + Appearance.rounding.screenRounding
|
||||||
@@ -91,7 +91,7 @@ Scope {
|
|||||||
left: parent.left
|
left: parent.left
|
||||||
top: parent.top
|
top: parent.top
|
||||||
bottom: undefined
|
bottom: undefined
|
||||||
topMargin: (Config?.options.bar.autoHide.enabled && !mustShow) ? -Appearance.sizes.barHeight + 1 : 0
|
topMargin: (Config?.options.bar.autoHide.enable && !mustShow) ? -Appearance.sizes.barHeight + 1 : 0
|
||||||
bottomMargin: 0
|
bottomMargin: 0
|
||||||
}
|
}
|
||||||
Behavior on anchors.topMargin {
|
Behavior on anchors.topMargin {
|
||||||
@@ -116,7 +116,7 @@ Scope {
|
|||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: barContent
|
target: barContent
|
||||||
anchors.topMargin: 0
|
anchors.topMargin: 0
|
||||||
anchors.bottomMargin: (Config?.options.bar.autoHide.enabled && !mustShow) ? -Appearance.sizes.barHeight + 1 : 0
|
anchors.bottomMargin: (Config?.options.bar.autoHide.enable && !mustShow) ? -Appearance.sizes.barHeight + 1 : 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -125,10 +125,10 @@ Singleton {
|
|||||||
|
|
||||||
property JsonObject bar: JsonObject {
|
property JsonObject bar: JsonObject {
|
||||||
property JsonObject autoHide: JsonObject {
|
property JsonObject autoHide: JsonObject {
|
||||||
property bool enabled: false
|
property bool enable: false
|
||||||
property bool pushWindows: false
|
property bool pushWindows: false
|
||||||
property JsonObject showWhenPressingSuper: JsonObject {
|
property JsonObject showWhenPressingSuper: JsonObject {
|
||||||
property bool enabled: true
|
property bool enable: true
|
||||||
property int delay: 100
|
property int delay: 100
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user