ubports / ubuntu-touch

Ubuntu Touch's issue inbox is now migrated to GitLab.
https://gitlab.com/ubports/ubuntu-touch
1.28k stars 110 forks source link

Night mode (blue/red light filter) #191

Open ghost opened 7 years ago

ghost commented 7 years ago

The screen is quite intense at night time. Things like the scopes, Twitter app, Dekko and more have mostly white on their UI. Waiting for all apps to implement a night mode (Podbird has one and reddit.com provides one too) would take a long time - could it be provided as a switch in the notification area?

With Compiz Config Settings Manager I can use SUPER+M to invert the colours of the entire Ubuntu desktop. It would be great to have this feature on the phone to prevent hurting our eyes at night.

PhoenixLandPirate commented 7 years ago

The night mode options on android just take away the blue from the screen to make it easier on the eyes, this is what should be implemented under the name nightmode.

If you want an option to invert colours that would be a feature under a different name, in android you have both options to have nightmode and invert colours via the pull down menu.

NeoTheThird commented 6 years ago

Night mode is WIP by @nfsprodriver and @mariogrip here.

UniversalSuperBox commented 5 years ago

Working on this a bit more, I've found that the approach we were taking (which, admittedly, was a bit of an "easy-button" way in QML) does not provide good performance. We will need to consider a more efficient way to filter blue light, probably at the compositor or display server level.

kkeijzer commented 4 years ago

Is anyone still interested in implementing this?

The Newsie app is able to add a blue light filter that works pretty well. This seems to be a JavaScript app though, and not QML. I think the red overlay implementation is even done in CSS.

However, if something similar could be added to, for instance, Morph Browser only, that would already be very helpful.

m0n5t3r commented 3 years ago

in the linux world I'm aware of the mostly not working (as in it either forgets to trigger or it just gets stuck one way or another) night mode from Gnome Shell, and the reliable redshift implementation which uses RANDR; a cursory search for redshift wayland support yielded https://sr.ht/~kennylevinsen/wlsunset/ - maybe it can be ported to mir if the latter supports the relevant gamma controls?