fix(StatusScrollBar): Fixed visibilty when policy always on (#878)
Needed for https://github.com/status-im/status-desktop/issues/6262
This commit is contained in:
parent
5e7a0d8251
commit
e146ccaed4
|
@ -47,7 +47,7 @@ T.ScrollBar {
|
||||||
|
|
||||||
contentItem: Rectangle {
|
contentItem: Rectangle {
|
||||||
color: Theme.palette.primaryColor2
|
color: Theme.palette.primaryColor2
|
||||||
opacity: enabled && (root.hovered || root.active) ? 1.0 : 0.0
|
opacity: enabled && (root.hovered || root.active || (root.policy === T.ScrollBar.AlwaysOn)) ? 1.0 : 0.0
|
||||||
radius: Math.min(width, height) / 2
|
radius: Math.min(width, height) / 2
|
||||||
|
|
||||||
Behavior on opacity { NumberAnimation { duration: 100 } }
|
Behavior on opacity { NumberAnimation { duration: 100 } }
|
||||||
|
|
Loading…
Reference in New Issue