You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/04/09 09:22:47 UTC

[GitHub] [cordova-android] MittereggerMartin commented on issue #747: Dark Mode Support Android Q

MittereggerMartin commented on issue #747: Dark Mode Support Android Q
URL: https://github.com/apache/cordova-android/issues/747#issuecomment-611427048
 
 
   I have the same issue - dark mode seems to be enabled since the following if statement evaluates to true.
   ```
   if (window.matchMedia('(prefers-color-scheme)').media !== 'not all') {
       console.log('Dark mode is supported');
   }
   ```
   
   But the css media query always returns no-preference - no matter if dark mode is enabled or not.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org