From a76422920f4eb98634e1fb0094c0267e8f7d8b86 Mon Sep 17 00:00:00 2001 From: talksik Date: Sun, 13 Apr 2025 09:28:02 -0700 Subject: [PATCH] feat: add property for always showing icon button bg --- AppIconButton.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AppIconButton.qml b/AppIconButton.qml index de8f877..c61631d 100644 --- a/AppIconButton.qml +++ b/AppIconButton.qml @@ -13,6 +13,8 @@ Button { required property string source property bool useOriginalColor: false + // Shows the highlight background even when not pressed + property bool showBackground: false icon.source: control.source icon.width: 20 @@ -24,7 +26,7 @@ Button { implicitWidth: 100 implicitHeight: 40 visible: !control.flat || control.down || control.checked || control.highlighted - color: control.down ? Theme.highlight : "transparent" + color: control.down || control.showBackground ? Theme.highlight : "transparent" border.width: 0 // custom radius: Theme.radius