PowerToggle: was not receiving scaling which led to a broken bar.

This commit is contained in:
LemmyCook 2025-09-11 15:56:10 -04:00
parent 77f8b3937c
commit 9a0746d737
2 changed files with 5 additions and 2 deletions

View file

@ -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"

View file

@ -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