mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-04 18:55:44 +00:00
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 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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user