From b520eb490c7b99659bdb685995e5ad4a3507cbb3 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 13 Jul 2025 17:16:14 +0800 Subject: workspace more fix + activewindow] --- bar/Bar.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bar/Bar.qml') diff --git a/bar/Bar.qml b/bar/Bar.qml index 3428b06..6ec1670 100644 --- a/bar/Bar.qml +++ b/bar/Bar.qml @@ -44,7 +44,7 @@ Scope { anchors { left: parent.left } - implicitWidth: workspace.width + leftRow.anchors.leftMargin + mpris.width + implicitWidth: workspace.width + leftRow.anchors.leftMargin + leftRow.anchors.rightMargin + leftRow.spacing + mpris.width implicitHeight: leftRow.height color: Qt.rgba(Colors.r, Colors.g, Colors.b, Bar.bgTransparency) radius: Bar.moduleRadius @@ -53,9 +53,11 @@ Scope { RowLayout { id: leftRow anchors.left: parent.left - anchors.leftMargin: 20 + anchors.leftMargin: Bar.moduleLeftMargin + anchors.rightMargin: Bar.moduleRightMargin // does nothing but more consistent code style (as leftRow's right is middle but leftRow will never reach middle) implicitWidth: (child.width - centerRow.width) / 2 implicitHeight: child.height + spacing: Bar.leftModuleSpacing Workspace { id: workspace -- cgit v1.2.3