From 211c4fb1022f3ee7e5bca6dfa32e55b84ebd679f Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 11 Aug 2025 22:46:28 +0700 Subject: [PATCH] fix weird osd position when bar autohides --- .../ii/modules/common/widgets/StyledPopup.qml | 1 - .../onScreenDisplay/OnScreenDisplayBrightness.qml | 11 ++++++++--- .../modules/onScreenDisplay/OnScreenDisplayVolume.qml | 11 ++++++++--- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.config/quickshell/ii/modules/common/widgets/StyledPopup.qml b/.config/quickshell/ii/modules/common/widgets/StyledPopup.qml index 164c9217c..4958a1c68 100644 --- a/.config/quickshell/ii/modules/common/widgets/StyledPopup.qml +++ b/.config/quickshell/ii/modules/common/widgets/StyledPopup.qml @@ -15,7 +15,6 @@ LazyLoader { component: PanelWindow { id: popupWindow - visible: true color: "transparent" anchors.left: true diff --git a/.config/quickshell/ii/modules/onScreenDisplay/OnScreenDisplayBrightness.qml b/.config/quickshell/ii/modules/onScreenDisplay/OnScreenDisplayBrightness.qml index 572963c79..13f78b68c 100644 --- a/.config/quickshell/ii/modules/onScreenDisplay/OnScreenDisplayBrightness.qml +++ b/.config/quickshell/ii/modules/onScreenDisplay/OnScreenDisplayBrightness.qml @@ -52,6 +52,7 @@ Scope { sourceComponent: PanelWindow { id: osdRoot + color: "transparent" Connections { target: root @@ -60,11 +61,8 @@ Scope { } } - exclusionMode: ExclusionMode.Normal WlrLayershell.namespace: "quickshell:onScreenDisplay" WlrLayershell.layer: WlrLayer.Overlay - color: "transparent" - anchors { top: !Config.options.bar.bottom bottom: Config.options.bar.bottom @@ -73,6 +71,13 @@ Scope { item: osdValuesWrapper } + exclusionMode: ExclusionMode.Ignore + exclusiveZone: 0 + margins { + top: Appearance.sizes.barHeight + bottom: Appearance.sizes.barHeight + } + implicitWidth: columnLayout.implicitWidth implicitHeight: columnLayout.implicitHeight visible: osdLoader.active diff --git a/.config/quickshell/ii/modules/onScreenDisplay/OnScreenDisplayVolume.qml b/.config/quickshell/ii/modules/onScreenDisplay/OnScreenDisplayVolume.qml index 6128cdfd2..51207d6df 100644 --- a/.config/quickshell/ii/modules/onScreenDisplay/OnScreenDisplayVolume.qml +++ b/.config/quickshell/ii/modules/onScreenDisplay/OnScreenDisplayVolume.qml @@ -64,6 +64,7 @@ Scope { sourceComponent: PanelWindow { id: osdRoot + color: "transparent" Connections { target: root @@ -72,11 +73,8 @@ Scope { } } - exclusionMode: ExclusionMode.Normal WlrLayershell.namespace: "quickshell:onScreenDisplay" WlrLayershell.layer: WlrLayer.Overlay - color: "transparent" - anchors { top: !Config.options.bar.bottom bottom: Config.options.bar.bottom @@ -85,6 +83,13 @@ Scope { item: osdValuesWrapper } + exclusionMode: ExclusionMode.Ignore + exclusiveZone: 0 + margins { + top: Appearance.sizes.barHeight + bottom: Appearance.sizes.barHeight + } + implicitWidth: columnLayout.implicitWidth implicitHeight: columnLayout.implicitHeight visible: osdLoader.active