You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current dark mode implementation uses media queries to detect whether the system theme is light or dark . For example:
@media (prefers-color-scheme: dark) {
/* css for dark theme */
}
@media (prefers-color-scheme: light) {
/* css for light theme */
}
However, current Android WebView doesn't support prefers-color-scheme query (see Browser compatibility), which leads to the following problems:
Dark mode cannot be activated successfully
Some css selectors only deals with dark and light theme, but not deals with no-preference. which may cause unintended appearance (as the screenshots shown in Logs)
Steps to Reproduce
Build the app
Enable dark mode in Android device
Open the Capture app in Android device
Expected Behavior
Expected: Dark mode can be activated and all elements should look as intended
Actual: Dark mode cannot be activated and some elements do not look as intended
Description
The current dark mode implementation uses media queries to detect whether the system theme is
light
ordark
. For example:However, current Android WebView doesn't support
prefers-color-scheme
query (see Browser compatibility), which leads to the following problems:dark
andlight
theme, but not deals withno-preference
. which may cause unintended appearance (as the screenshots shown in Logs)Steps to Reproduce
Expected Behavior
Logs
Environment
Possible Solutions
light
anddark
may solve it┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: