PowerToggle: was not receiving scaling which led to a broken bar.
This commit is contained in:
parent
77f8b3937c
commit
9a0746d737
2 changed files with 5 additions and 2 deletions
|
|
@ -8,6 +8,9 @@ import qs.Widgets
|
|||
NIconButton {
|
||||
id: root
|
||||
|
||||
property ShellScreen screen
|
||||
property real scaling: 1.0
|
||||
|
||||
sizeRatio: 0.8
|
||||
|
||||
icon: "power"
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ Rectangle {
|
|||
signal rightClicked
|
||||
signal middleClicked
|
||||
|
||||
implicitWidth: size
|
||||
implicitHeight: size
|
||||
implicitWidth: Style.baseWidgetSize * scaling * sizeRatio
|
||||
implicitHeight: Style.baseWidgetSize * scaling * sizeRatio
|
||||
|
||||
opacity: root.enabled ? Style.opacityFull : Style.opacityMedium
|
||||
color: root.enabled && root.hovering ? colorBgHover : colorBg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue