From 8127908623a6f1737537a7b53d479bf9039a4afd Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 13 Jul 2025 16:40:14 +0800 Subject: margin implicit width not cool --- 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 a18ad06..3428b06 100644 --- a/bar/Bar.qml +++ b/bar/Bar.qml @@ -11,6 +11,7 @@ Scope { model: Quickshell.screens IWindow { + id: barWindow name: "Bar" anchors { @@ -43,7 +44,7 @@ Scope { anchors { left: parent.left } - implicitWidth: workspace.width + mpris.width + implicitWidth: workspace.width + leftRow.anchors.leftMargin + mpris.width implicitHeight: leftRow.height color: Qt.rgba(Colors.r, Colors.g, Colors.b, Bar.bgTransparency) radius: Bar.moduleRadius @@ -58,7 +59,8 @@ Scope { Workspace { id: workspace - Layout.minimumWidth: 400 // FIXME + // screen: barWindow.screen // multi monitor + // Layout.minimumWidth: 400 // FIXME } Mpris { id: mpris -- cgit v1.2.3