feat(StatusIconButton): introduce property to configure background opacity

This commit is contained in:
Pascal Precht 2021-01-20 17:16:45 +01:00 committed by Iuri Matias
parent 0e19801782
commit f055286124
1 changed files with 2 additions and 0 deletions

View File

@ -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"