volumeosd: Don't highlight audio device when there is only one entry

This commit is contained in:
Devin Lin 2025-10-08 09:45:30 -07:00
parent 0da9ca21f8
commit da53fe4a82

View file

@ -46,9 +46,7 @@ Controls.AbstractButton {
background: Rectangle { background: Rectangle {
radius: Kirigami.Units.cornerRadius radius: Kirigami.Units.cornerRadius
// border.width: 1 color: ((baseItem.selected || baseItem.down) && !baseItem.onlyOne)
// border.color: baseItem.selected ? Kirigami.Theme.highlightColor : 'transparent'
color: (baseItem.selected || baseItem.down)
? Qt.rgba(Kirigami.Theme.highlightColor.r, Kirigami.Theme.highlightColor.g, Kirigami.Theme.highlightColor.b, 0.3) ? Qt.rgba(Kirigami.Theme.highlightColor.r, Kirigami.Theme.highlightColor.g, Kirigami.Theme.highlightColor.b, 0.3)
: 'transparent' : 'transparent'
} }