actioncenter: stack view setup

This commit is contained in:
end-4
2025-11-18 23:25:29 +01:00
parent 488b3c06d6
commit 64c1b5be0b
5 changed files with 68 additions and 48 deletions
@@ -18,7 +18,7 @@ ColumnLayout {
WPanelIconButton {
color: colBackground
property real animationValue: root.brightnessMonitor.brightness
property real animationValue: root.brightnessMonitor?.brightness ?? 0
rotation: animationValue * 180
scale: 0.8 + animationValue * 0.2
iconName: "weather-sunny"
@@ -30,9 +30,9 @@ ColumnLayout {
WSlider {
Layout.fillWidth: true
value: root.brightnessMonitor.brightness
value: root.brightnessMonitor?.brightness ?? 0
onMoved: {
root.brightnessMonitor.setBrightness(value)
root.brightnessMonitor?.setBrightness(value)
}
}