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