From da53fe4a826c3e0637df792330ab8ab47faadf63 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Wed, 8 Oct 2025 09:45:30 -0700 Subject: [PATCH] volumeosd: Don't highlight audio device when there is only one entry --- components/mobileshell/qml/popups/volumeosd/ListItemBase.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/mobileshell/qml/popups/volumeosd/ListItemBase.qml b/components/mobileshell/qml/popups/volumeosd/ListItemBase.qml index e3d6d0ee..31c26fb6 100644 --- a/components/mobileshell/qml/popups/volumeosd/ListItemBase.qml +++ b/components/mobileshell/qml/popups/volumeosd/ListItemBase.qml @@ -46,9 +46,7 @@ Controls.AbstractButton { background: Rectangle { radius: Kirigami.Units.cornerRadius - // border.width: 1 - // border.color: baseItem.selected ? Kirigami.Theme.highlightColor : 'transparent' - color: (baseItem.selected || baseItem.down) + color: ((baseItem.selected || baseItem.down) && !baseItem.onlyOne) ? Qt.rgba(Kirigami.Theme.highlightColor.r, Kirigami.Theme.highlightColor.g, Kirigami.Theme.highlightColor.b, 0.3) : 'transparent' }