From f5462c3274d008c1bb509cfac4eab8492d822cf5 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 13 Jul 2025 14:55:59 +0800 Subject: finish bar workspace style --- bar/Bar.qml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'bar/Bar.qml') diff --git a/bar/Bar.qml b/bar/Bar.qml index 0591152..a18ad06 100644 --- a/bar/Bar.qml +++ b/bar/Bar.qml @@ -36,23 +36,32 @@ Scope { rightMargin: Bar.rightMargin } + color: "transparent" + + Rectangle { + id: barBackground + anchors { + left: parent.left + } + implicitWidth: workspace.width + mpris.width + implicitHeight: leftRow.height + color: Qt.rgba(Colors.r, Colors.g, Colors.b, Bar.bgTransparency) + radius: Bar.moduleRadius + } + RowLayout { id: leftRow + anchors.left: parent.left + anchors.leftMargin: 20 implicitWidth: (child.width - centerRow.width) / 2 implicitHeight: child.height Workspace { id: workspace - Layout.preferredWidth: 5 - Layout.fillHeight: true - Layout.fillWidth: true - Layout.maximumWidth: 400 // FIXME + Layout.minimumWidth: 400 // FIXME } Mpris { id: mpris - Layout.fillWidth: true - Layout.fillHeight: true - Layout.preferredWidth: 1 } Item { Layout.fillWidth: true -- cgit v1.2.3