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 {
|
NIconButton {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
property ShellScreen screen
|
||||||
|
property real scaling: 1.0
|
||||||
|
|
||||||
sizeRatio: 0.8
|
sizeRatio: 0.8
|
||||||
|
|
||||||
icon: "power"
|
icon: "power"
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,8 @@ Rectangle {
|
||||||
signal rightClicked
|
signal rightClicked
|
||||||
signal middleClicked
|
signal middleClicked
|
||||||
|
|
||||||
implicitWidth: size
|
implicitWidth: Style.baseWidgetSize * scaling * sizeRatio
|
||||||
implicitHeight: size
|
implicitHeight: Style.baseWidgetSize * scaling * sizeRatio
|
||||||
|
|
||||||
opacity: root.enabled ? Style.opacityFull : Style.opacityMedium
|
opacity: root.enabled ? Style.opacityFull : Style.opacityMedium
|
||||||
color: root.enabled && root.hovering ? colorBgHover : colorBg
|
color: root.enabled && root.hovering ? colorBgHover : colorBg
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue