From 66c810ead2329eeb7466224424b8073b4df89dd7 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Fri, 8 Aug 2025 20:12:50 +0700 Subject: [PATCH] bar autohide: rename enabled -> enable for consistency --- .config/quickshell/ii/modules/bar/Bar.qml | 8 ++++---- .config/quickshell/ii/modules/common/Config.qml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.config/quickshell/ii/modules/bar/Bar.qml b/.config/quickshell/ii/modules/bar/Bar.qml index a611e28c3..c19fbd311 100644 --- a/.config/quickshell/ii/modules/bar/Bar.qml +++ b/.config/quickshell/ii/modules/bar/Bar.qml @@ -50,7 +50,7 @@ Scope { Connections { target: GlobalStates function onSuperDownChanged() { - if (!Config?.options.bar.autoHide.showWhenPressingSuper.enabled) return; + if (!Config?.options.bar.autoHide.showWhenPressingSuper.enable) return; if (GlobalStates.superDown) showBarTimer.restart(); else { showBarTimer.stop(); @@ -61,7 +61,7 @@ Scope { property bool superShow: false property bool mustShow: hoverRegion.containsMouse || superShow 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) WlrLayershell.namespace: "quickshell:bar" implicitHeight: Appearance.sizes.barHeight + Appearance.rounding.screenRounding @@ -91,7 +91,7 @@ Scope { left: parent.left top: parent.top 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 } Behavior on anchors.topMargin { @@ -116,7 +116,7 @@ Scope { PropertyChanges { target: barContent 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 } } } diff --git a/.config/quickshell/ii/modules/common/Config.qml b/.config/quickshell/ii/modules/common/Config.qml index 00be02b26..9180000a5 100644 --- a/.config/quickshell/ii/modules/common/Config.qml +++ b/.config/quickshell/ii/modules/common/Config.qml @@ -125,10 +125,10 @@ Singleton { property JsonObject bar: JsonObject { property JsonObject autoHide: JsonObject { - property bool enabled: false + property bool enable: false property bool pushWindows: false property JsonObject showWhenPressingSuper: JsonObject { - property bool enabled: true + property bool enable: true property int delay: 100 } }