add background to ws module

This commit is contained in:
lucy 2026-08-16 12:42:40 +02:00
commit 59d4fcde72
2 changed files with 7 additions and 7 deletions

View file

@ -34,10 +34,10 @@ Variants {
anchors.fill: parent anchors.fill: parent
RowLayout { RowLayout {
id: leftLayout id: leftLayout
spacing: 10 spacing: 5
anchors.left: parent.left anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.leftMargin: Config.floating ? (Config.barHeight - root.moduleHeight) / 2 : Config.rounding anchors.leftMargin: Config.floating ? (Config.barHeight - root.moduleHeight) / 2 : Config.rounding == 0 ? 10 : Config.rounding
Ws { Ws {
moduleHeight: root.moduleHeight moduleHeight: root.moduleHeight
barScreen: root.modelData barScreen: root.modelData
@ -64,8 +64,8 @@ Variants {
id: rightLayout id: rightLayout
anchors.right: parent.right anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 15 spacing: 5
anchors.rightMargin: Config.floating ? (Config.barHeight - root.moduleHeight) / 2 : Config.rounding anchors.rightMargin: Config.floating ? (Config.barHeight - root.moduleHeight) / 2 : Config.rounding == 0 ? 10 : Config.rounding
Mpris { Mpris {
moduleHeight: root.moduleHeight moduleHeight: root.moduleHeight
} }

View file

@ -12,8 +12,8 @@ Rectangle {
required property ShellScreen barScreen required property ShellScreen barScreen
required property double moduleHeight required property double moduleHeight
radius: Config.rounding radius: Config.rounding
color: 'transparent' color: Colors.moduleBg
implicitWidth: wsLayout.implicitWidth implicitWidth: wsLayout.implicitWidth + 15
implicitHeight: moduleHeight implicitHeight: moduleHeight
RowLayout { RowLayout {
@ -41,7 +41,7 @@ Rectangle {
id: wsName id: wsName
anchors.centerIn: parent anchors.centerIn: parent
text: wsWrapper.modelData.name text: wsWrapper.modelData.name
color: wsWrapper.active ? Colors.base0D : Colors.activeModuleBg color: wsWrapper.active ? Colors.base0D : Colors.base03
font.bold: true font.bold: true
} }
MouseArea { MouseArea {