kcm/workspace: Rewrote automatic brightness adjustment code for configurability and added a kcm
requested to merge jkoking/kwin:automaticbrightnesssettings into work/zamundaaa/automatic-brightness-control
Changes
- Added a KCM with configuration options. sensitivity, offset mode and offset
- Edited the original code by Xaver Hugl to use these values. !5876
How they work
Offset mode controls weather the offset is added or subtracted The light value which is then multiplied by sensitivity.
Notes
- This is my first merge request on a KDE project and my first time touching c++ in a while so please let me know if I'm doing anything wrong or inefficiently.
- I'm not sure about the correct ranges for sensitivity and offset I settled on 0 to 100 and 0.01 to 100 respectively but if you think they should be something different, please let me know.
Edited by Jacob Osborne