mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 23:42:51 -05:00
suppress brightness OSD when operating from cc
This commit is contained in:
@@ -136,7 +136,7 @@ Row {
|
|||||||
value: targetBrightness
|
value: targetBrightness
|
||||||
onSliderValueChanged: function(newValue) {
|
onSliderValueChanged: function(newValue) {
|
||||||
if (DisplayService.brightnessAvailable && targetDeviceName) {
|
if (DisplayService.brightnessAvailable && targetDeviceName) {
|
||||||
DisplayService.setBrightness(newValue, targetDeviceName)
|
DisplayService.setBrightness(newValue, targetDeviceName, true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
thumbOutlineColor: Theme.surfaceContainer
|
thumbOutlineColor: Theme.surfaceContainer
|
||||||
|
|||||||
@@ -66,9 +66,11 @@ Singleton {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setBrightness(percentage, device) {
|
function setBrightness(percentage, device, suppressOsd) {
|
||||||
setBrightnessInternal(percentage, device)
|
setBrightnessInternal(percentage, device)
|
||||||
brightnessChanged()
|
if (!suppressOsd) {
|
||||||
|
brightnessChanged()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setCurrentDevice(deviceName, saveToSession = false) {
|
function setCurrentDevice(deviceName, saveToSession = false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user