Liy OporFollow


If the user uses any application (e.g., browser application or messaging application) and changes the mobile device to dark/night mode, the application interface may be darkened too, as prescribed by the Android/iOS internal protocols. However, once the user receives a light color image that is not a part of the application interface (e.g., on a new page in the browser or in a new message), this image might be much brighter than the interface of the application. In such circumstances, the user would feel uncomfortable because he may be blinded by a bright image in the dark. Before presenting a new image in dark mode, the application may calculate the image's average color for the whole image. Then the application may calculate the luminance value of the average color. If the luminance value is higher than 0.4, it shall put a grey translucent layer above the image to darken the image.

Creative Commons License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.