From f0552861240cf68938213dd4389e233905ed9aa2 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 20 Jan 2021 17:16:45 +0100 Subject: [PATCH] feat(StatusIconButton): introduce property to configure background opacity --- ui/shared/status/StatusIconButton.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/shared/status/StatusIconButton.qml b/ui/shared/status/StatusIconButton.qml index 7e7e1751ae..c904b55fbb 100644 --- a/ui/shared/status/StatusIconButton.qml +++ b/ui/shared/status/StatusIconButton.qml @@ -12,6 +12,7 @@ RoundButton { property color highlightedIconColor: Style.current.blue property color hoveredIconColor: Style.current.blue property color highlightedBackgroundColor: Style.current.secondaryBackground + property real highlightedBackgroundOpacity: 1.0 property color disabledColor: iconColor property int iconRotation: 0 @@ -42,6 +43,7 @@ RoundButton { background: Rectangle { anchors.fill: parent + opacity: control.highlightedBackgroundOpacity color: { if (type === "secondary") { return "transparent"