Open jacobc-eth opened 2 years ago
when the extension first opens, and the react app and JS hasn't loaded yet, this is the loading screen that you get (minus the paused debugger faded out-ness):
we can see the style for background-color-default
is resolving to white:
Theme is pulled out of redux and set on here:
When manually clicking the extension, there is a slight delay before displaying the dark-mode UI. I presume something is handling waiting until the app is booted before popping up the extension window.
trying with media query prefers-color-scheme
:
Adding the below code works when the user has set darkmode at the OS level, but not when manually toggled in settings.
@media (prefers-color-scheme: dark) {
#app-content {
display: flex;
flex-flow: column;
background-color: black !important;
}
}
@media (prefers-color-scheme: light) {
#app-content {
display: flex;
flex-flow: column;
background-color: white !important;
}
}
trying to read theme value in the first script to load:
theme is set to null =(
there is a related bug with chrome on ubuntu whereby setting 'dark' theme in the OS does not set prefers-color-scheme
in chrome, but it works in firefox. Have not yet tried to repro this bug in firefox.
Theres a few take-aways from investigating this issue.
Potential solutions:
Describe the bug
When using MetaMask in dark mode, the loading screen for confirmations is still a white screen with a fox. This creates a jarring experience for dark mode users who are trying to avoid seeing bright white popups.
Steps to reproduce
Error messages or log output
No response
Version
10.14.1
Build type
No response
Browser
Brave
Operating system
Linux
Hardware wallet
GridPlus Lattice1
Additional context
No response