overhaul style
This commit is contained in:
parent
c40299d6b3
commit
0bc8d5f13a
10 changed files with 32 additions and 25 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue