Automatically detect how bright a user's monitor is?
I have web application and have noticed that there exists a huge variation in users' monitor brightness settings.
The brighter a user's monitor, the more washed about my web applications colors look.
Is there a 开发者_如何学运维way to automatically detect the user's monitor brightness, without the user's involvement, so that I can programmatically adjust my web-application's colors based on the brightness?
Short answer; "No".
Longer answer; "No, never"
Even if it were possible (which it isn't), users have their reasons for using differing contrast/brightness levels and to try to circumvent these would be considered rude. It would be like a radio advertiser asking if it is possible to turn up the radio when their advert plays. Of course, you could use an approach similar to those used in audio advertising (where they limit the buggery out of the signal to get it as loud as possible) with your color scheme.
I don't think so. Monitor brightness is a hardware setting, and I don't think the computer is able to read that setting.
精彩评论