fixup ws styling

This commit is contained in:
lucy 2026-08-26 21:12:03 +02:00
commit b329303ee1
5 changed files with 32 additions and 27 deletions

View file

@ -3,7 +3,6 @@ import QtQuick
import QtQuick.Layouts
import qs.modules.wallpaper
import qs.settings
import qs.widgets
import qs
Variants {
@ -19,11 +18,15 @@ Variants {
}
color: 'transparent'
implicitHeight: Config.barHeight
margins.top: Config.floating ? 10 : 0
margins.left: Config.floating ? 10 : 0
margins.right: Config.floating ? 10 : 0
Rectangle {
anchors.fill: parent
color: Colors.barBg
radius: Config.floating ? Config.rounding : 0
RowLayout {
anchors.leftMargin: 10
anchors.leftMargin: 4
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
Ws {
@ -36,7 +39,7 @@ Variants {
Date {}
}
RowLayout {
anchors.rightMargin: 10
anchors.rightMargin: 4
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
Mpris {}
@ -48,7 +51,7 @@ Variants {
}
Pw {}
Netstatus {}
Netstatus {}
}
}
}

View file

@ -13,7 +13,7 @@ BarComponent {
RowLayout {
id: wsLayout
anchors.centerIn: parent
spacing: 8
spacing: 0
Repeater {
model: WindowManager.screenProjection(root.barScreen).windowsets
delegate: Rectangle {
@ -22,7 +22,7 @@ BarComponent {
visible: modelData.shouldDisplay
implicitWidth: modelData.active ? 50 : 20
implicitHeight: Config.moduleHeight - 4
color: modelData.active ? Colors.base0D : Colors.activeModuleBg
color: modelData.active ? Colors.base0D : Colors.moduleBg
radius: Config.rounding
Behavior on implicitWidth {
PropertyAnimation {