From ebb49d89a321596400560fcb9bd5b9f544671eb6 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sat, 4 Mar 2023 18:38:33 -0800 Subject: [PATCH] osd/audio: Port to ItemDelegate --- components/mobileshell/qml/osd/volume/ListItemBase.qml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/components/mobileshell/qml/osd/volume/ListItemBase.qml b/components/mobileshell/qml/osd/volume/ListItemBase.qml index c375cf5d..a6c40bba 100644 --- a/components/mobileshell/qml/osd/volume/ListItemBase.qml +++ b/components/mobileshell/qml/osd/volume/ListItemBase.qml @@ -18,12 +18,10 @@ import org.kde.plasma.components 3.0 as PlasmaComponents import org.kde.plasma.extras 2.0 as PlasmaExtra import org.kde.plasma.private.volume 0.1 -import org.kde.kirigami 2.12 as Kirigami - import "icon.js" as Icon // adapted from https://invent.kde.org/plasma/plasma-pa/-/blob/master/applet/contents/ui/ListItemBase.qml -Kirigami.SwipeListItem { +Controls.ItemDelegate { id: baseItem property string label @@ -31,10 +29,8 @@ Kirigami.SwipeListItem { property alias iconUsesPlasmaTheme: clientIcon.usesPlasmaTheme property string type // sink, source, source-output - alwaysVisibleActions: true - - backgroundColor: "transparent" // we use panel background, no need for the same colour to be on top - activeBackgroundColor: selectButton.visible ? PlasmaCore.Theme.highlightColor : "transparent" + // backgroundColor: "transparent" // we use panel background, no need for the same colour to be on top + // activeBackgroundColor: selectButton.visible ? PlasmaCore.Theme.highlightColor : "transparent" onClicked: { if (selectButton.visible) {