style(workspace): enforce completely static pill styling on click/hover with zero fill changes
This commit is contained in:
parent
331a393ea0
commit
ca7793e3b2
@ -76,22 +76,17 @@ GlassPanel {
|
|||||||
Layout.preferredWidth: wsText.implicitWidth + 14
|
Layout.preferredWidth: wsText.implicitWidth + 14
|
||||||
Layout.preferredHeight: 22
|
Layout.preferredHeight: 22
|
||||||
radius: 5
|
radius: 5
|
||||||
color: isActive ? Theme.accent : (wsItemMouse.containsMouse ? Theme.currentLine : "transparent")
|
color: "transparent"
|
||||||
border.color: isActive ? Theme.accent : Qt.rgba(Theme.fg.r, Theme.fg.g, Theme.fg.b, 0.15)
|
border.color: Qt.rgba(Theme.fg.r, Theme.fg.g, Theme.fg.b, 0.15)
|
||||||
border.width: 1
|
border.width: 1
|
||||||
|
|
||||||
Behavior on color { ColorAnimation { duration: 120 } }
|
|
||||||
Behavior on border.color { ColorAnimation { duration: 120 } }
|
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: wsText
|
id: wsText
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: modelData
|
text: modelData
|
||||||
color: wsItem.isActive ? (Theme.isDark ? Theme.bg : "#ffffff") : (wsItemMouse.containsMouse ? Theme.accent : Theme.fg)
|
color: wsItem.isActive ? Theme.accent : Theme.fg
|
||||||
font.pixelSize: 11
|
font.pixelSize: 11
|
||||||
font.weight: wsItem.isActive ? Font.Bold : Font.Medium
|
font.weight: wsItem.isActive ? Font.Bold : Font.Medium
|
||||||
|
|
||||||
Behavior on color { ColorAnimation { duration: 120 } }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user