1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-26 14:32:52 -05:00

ddc use raw values not percent

This commit is contained in:
bbedward
2025-11-05 09:23:14 -05:00
parent ce6f3afb39
commit d834124a71
3 changed files with 33 additions and 6 deletions

View File

@@ -65,10 +65,18 @@ DankOSD {
if (!deviceInfo) return 1
return (deviceInfo.class === "backlight" || deviceInfo.class === "ddc") ? 1 : 0
}
maximum: 100
maximum: {
const deviceInfo = DisplayService.getCurrentDeviceInfo()
if (!deviceInfo) return 100
return deviceInfo.displayMax || 100
}
enabled: DisplayService.brightnessAvailable
showValue: true
unit: "%"
unit: {
const deviceInfo = DisplayService.getCurrentDeviceInfo()
if (!deviceInfo) return "%"
return deviceInfo.class === "ddc" ? "" : "%"
}
thumbOutlineColor: Theme.surfaceContainer
alwaysShowValue: SettingsData.osdAlwaysShowValue