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

brightness: use brightness.decrement/increment/refresh APIs

This commit is contained in:
bbedward
2025-11-03 10:57:16 -05:00
parent 976ff108b3
commit ed0b80008f
3 changed files with 106 additions and 60 deletions

View File

@@ -45,6 +45,7 @@ Singleton {
signal bluetoothPairingRequest(var data)
signal dwlStateUpdate(var data)
signal brightnessStateUpdate(var data)
signal brightnessDeviceUpdate(var device)
Component.onCompleted: {
if (socketPath && socketPath.length > 0) {
@@ -271,6 +272,10 @@ Singleton {
dwlStateUpdate(data)
} else if (service === "brightness") {
brightnessStateUpdate(data)
} else if (service === "brightness.update") {
if (data.device) {
brightnessDeviceUpdate(data.device)
}
}
}