overhaul style

This commit is contained in:
lucy 2026-09-15 21:33:50 +02:00
commit 0bc8d5f13a
10 changed files with 32 additions and 25 deletions

View file

@ -17,12 +17,13 @@ BarComponent {
spacing: 4
Repeater {
model: WindowManager.screenProjection(root.barScreen).windowsets
delegate: BarComponent {
delegate: Rectangle {
id: wsContainer
required property var modelData
radius: Config.cfg.appearance.rounding
implicitWidth: 16
implicitHeight: implicitWidth
color: modelData.active ? Colors.c.base0D : 'transparent'
color: modelData.active ? Colors.accent : 'transparent'
MouseArea {
id: clickHandler
anchors.fill: parent
@ -34,9 +35,8 @@ BarComponent {
id: wsText
anchors.centerIn: parent
text: parent.modelData.name
color: parent.modelData.shouldDisplay ? parent.modelData.active ? Colors.c.base00 : Colors.c.base0D : Colors.c.base05
opacity: parent.modelData.shouldDisplay ? 1.0 : 0.3
font.bold: true
color: parent.modelData.shouldDisplay ? parent.modelData.active ? Colors.c.base00 : Colors.font : Colors.font
opacity: parent.modelData.shouldDisplay ? 1.0 : 0.2
}
}
}