summaryrefslogtreecommitdiff
path: root/bar/Bar.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-13 14:55:59 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-13 14:55:59 +0800
commitf5462c3274d008c1bb509cfac4eab8492d822cf5 (patch)
tree3e24cc3c86c5e490ff8784947dd8fa785b6cd69d /bar/Bar.qml
parentf01658cd6da6ccfab9b59478d427511d4179c383 (diff)
finish bar workspace style
Diffstat (limited to 'bar/Bar.qml')
-rw-r--r--bar/Bar.qml23
1 files changed, 16 insertions, 7 deletions
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