several changes to cleaner code

This commit is contained in:
Zacharias-Brohn
2026-02-21 01:00:07 +01:00
parent cff2a85d9d
commit 23ccc0e1e8
11 changed files with 71 additions and 57 deletions
+9 -1
View File
@@ -101,7 +101,15 @@ Item {
icon: `brightness_${(Math.round(value * 6) + 1)}`
value: root.brightness
onMoved: root.monitor?.setBrightness(value)
onMoved: {
if ( Config.osd.allMonBrightness ) {
root.monitor?.setBrightness(value)
} else {
for (const mon of Brightness.monitors) {
mon.setBrightness(value)
}
}
}
}
}
}