Google Chrome’s dark mode may also darken web pages

Google’s Material Theme overhaul has been predominantly bright white, and not everyone is a fan of the blinding white color used everywhere. It took them a few years, but Google is finally realizing that a lot of users do seek a darker UX. Several Google apps have since adopted a dark theme, and Google Chrome is now catching up. Google Chrome for macOS was reported to receive a native dark mode, and Google Chrome for Windows 10 also received a dark mode in the Canary release channel. Google Chrome for Android is also testing a night mode with the Chrome 73 Beta, but this setting was limited to the browser UI.

A new code change posted to Chromium’s Gerrit now indicates that Chrome for Android plans to do much more than just theme its own UI elements. A future version of the app will recolor web pages to a darker color scheme when the user opts in for the dark theme in the browser. The commit adds in the #enable-android-web-contents-dark-mode flag, which enables other preferences that allow the browser to employ its built-in high contrast settings. High contrast settings are commonly used for accessibility purposes, so this should not affect the performance of the browser or webpage. However, since this does display the website in a form not intended by the developer, it may cause visual mismatches within the website depending on how the website is built.

The underlying changes behind the flag also point towards Android’s built-in WebView browser gaining night mode capabilities. Both, Chrome for Android and Android WebView will be able to darken web pages in the future. Chrome’s experimental dark mode for web content should arrive in the Canary release channel in the coming days, while it will take a bit more time for WebView’s beta to get this feature.


Source: Chromium Gerrit Story Via: 9to5Google



Refference - xdadevelopers.com

Post a Comment

0 Comments