Switch to HighContrast based on ambient sensor readings

Guido Günther requested to merge guidog/phosh:automatic-high-contrast into main

Add an automatic high contrast toggle that allows to switch to HC automatically based on the current light level.

Levels likely need some tuning and we might want to blend between states but since it's off by default it doesn't hurt either.

Demo: https://social.librem.one/@agx/108668794144125214

A possible improvement would be to switch at lower brightness level based on the displays current brightness.

Signed-off-by: Guido Günther guido.gunther@puri.sm

Edited by Guido Günther

Merge request reports