From cda00f91a3520856d3996fa8cd24117d27bc1b91 Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Sun, 1 Mar 2026 22:21:35 +0100 Subject: [PATCH] bar height --- Drawers/Bar.qml | 10 ++++++---- Modules/Bar/BarLoader.qml | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Drawers/Bar.qml b/Drawers/Bar.qml index 8439a91..2bf2348 100644 --- a/Drawers/Bar.qml +++ b/Drawers/Bar.qml @@ -42,7 +42,7 @@ Variants { regions: popoutRegions.instances width: bar.width x: 0 - y: Config.barConfig.autoHide && !visibilities.bar ? 4 : 34 + y: Config.barConfig.autoHide && !visibilities.bar ? 4 : backgroundRect.height } contentItem.Keys.onEscapePressed: { @@ -62,7 +62,7 @@ Variants { WlrLayershell.layer: WlrLayer.Bottom WlrLayershell.namespace: "ZShell-Bar-Exclusion" color: "transparent" - implicitHeight: 34 + implicitHeight: backgroundRect.height screen: bar.screen anchors { @@ -185,7 +185,7 @@ Variants { anchors.top: parent.top anchors.topMargin: Config.barConfig.autoHide && !visibilities.bar ? -30 : 0 color: "transparent" - implicitHeight: 34 + implicitHeight: barLoader.childrenRect.height radius: 0 Behavior on anchors.topMargin { @@ -200,7 +200,9 @@ Variants { BarLoader { id: barLoader - anchors.fill: parent + anchors.left: parent.left + anchors.right: parent.right + anchors.verticalCenter: parent.verticalCenter bar: bar popouts: panels.popouts screen: scope.modelData diff --git a/Modules/Bar/BarLoader.qml b/Modules/Bar/BarLoader.qml index df21fd4..6b1d1e6 100644 --- a/Modules/Bar/BarLoader.qml +++ b/Modules/Bar/BarLoader.qml @@ -52,7 +52,7 @@ RowLayout { } } - anchors.fill: parent + implicitHeight: childrenRect.height CustomShortcut { name: "toggle-overview"