mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
PowerToggle: was not receiving scaling which led to a broken bar.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user