feat(StatusIconButton): introduce property to configure background opacity
This commit is contained in:
parent
0e19801782
commit
f055286124
|
@ -12,6 +12,7 @@ RoundButton {
|
||||||
property color highlightedIconColor: Style.current.blue
|
property color highlightedIconColor: Style.current.blue
|
||||||
property color hoveredIconColor: Style.current.blue
|
property color hoveredIconColor: Style.current.blue
|
||||||
property color highlightedBackgroundColor: Style.current.secondaryBackground
|
property color highlightedBackgroundColor: Style.current.secondaryBackground
|
||||||
|
property real highlightedBackgroundOpacity: 1.0
|
||||||
property color disabledColor: iconColor
|
property color disabledColor: iconColor
|
||||||
property int iconRotation: 0
|
property int iconRotation: 0
|
||||||
|
|
||||||
|
@ -42,6 +43,7 @@ RoundButton {
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
opacity: control.highlightedBackgroundOpacity
|
||||||
color: {
|
color: {
|
||||||
if (type === "secondary") {
|
if (type === "secondary") {
|
||||||
return "transparent"
|
return "transparent"
|
||||||
|
|
Loading…
Reference in New Issue