1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-11 07:52:50 -05:00

brightness: dont cap to 1 minimum for non-backlight/ddc

This commit is contained in:
bbedward
2025-11-03 15:39:49 -05:00
parent 3640d8bd24
commit 3f70ca3506
4 changed files with 24 additions and 4 deletions

View File

@@ -145,7 +145,10 @@ Row {
anchors.verticalCenter: parent.verticalCenter
width: parent.width - (Theme.iconSize + Theme.spacingS * 2)
enabled: DisplayService.brightnessAvailable && targetDeviceName.length > 0
minimum: 1
minimum: {
if (!targetDevice) return 1
return (targetDevice.class === "backlight" || targetDevice.class === "ddc") ? 1 : 0
}
maximum: 100
value: targetBrightness
onSliderValueChanged: function (newValue) {