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 {
id: root
property ShellScreen screen
property real scaling: 1.0
sizeRatio: 0.8
icon: "power"

View file

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