MichaelPote commented on issue #897:
URL: https://github.com/apache/cordova-android/issues/897#issuecomment-802109505


   I've found something which fixed it for me!
   
   From https://developer.android.com/guide/webapps/dark-theme
   
   "WebView can't differentiate based solely on the presence of the media 
query, so it needs a color-scheme meta tag with dark value as indication that a 
web page has its own dark theme. To prevent double-darkening (that is, applying 
color inversion on top of media query customization) WebView evaluates @media 
(prefers-color-scheme: dark) to false in this mode."
   
   So I added `<meta name="color-scheme" content="dark">` to my html and presto 
- it now detects my prefers-color-scheme: dark query.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to