config: serialize brightnessIncrement (#1117)
* config: serialize brightnessIncrement * add brightness increment on OSD scroll
This commit is contained in:
parent
9d7f0c48ce
commit
2e68551738
2 changed files with 3 additions and 2 deletions
|
|
@ -426,6 +426,7 @@ Singleton {
|
|||
gpuType: services.gpuType,
|
||||
visualiserBars: services.visualiserBars,
|
||||
audioIncrement: services.audioIncrement,
|
||||
brightnessIncrement: services.brightnessIncrement,
|
||||
maxVolume: services.maxVolume,
|
||||
smartScheme: services.smartScheme,
|
||||
defaultPlayer: services.defaultPlayer,
|
||||
|
|
|
|||
|
|
@ -90,9 +90,9 @@ Item {
|
|||
if (!monitor)
|
||||
return;
|
||||
if (event.angleDelta.y > 0)
|
||||
monitor.setBrightness(monitor.brightness + 0.1);
|
||||
monitor.setBrightness(monitor.brightness + Config.services.brightnessIncrement);
|
||||
else if (event.angleDelta.y < 0)
|
||||
monitor.setBrightness(monitor.brightness - 0.1);
|
||||
monitor.setBrightness(monitor.brightness - Config.services.brightnessIncrement);
|
||||
}
|
||||
|
||||
FilledSlider {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue