philc / vimium

The hacker's browser.
https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb
MIT License
23.46k stars 2.49k forks source link

Use built-in dark theme without `prefers-color-scheme: dark` #4305

Open J-Kappes opened 1 year ago

J-Kappes commented 1 year ago

I like the buit-in dark theme, not only because it looks good but also because custom themes take a moment to apply on each freshly loaded page. However, I've stopped setting prefers-color-scheme: dark to combat fingerprinting. As a work-around I copied the dark theme CSS from the source code into the custom CSS field but now the Vomnibar flashes up in white for a moment once per page. Can somebody help me with this?

0x0003 commented 1 year ago

Related #3790 This seems to be a Firefox-only issue, doesn't happen in chromium-based browsers.

I'm also experiencing white flashes even with prefers-color-scheme: dark, because the default dark theme implemented in #3595 doesn't style .vimiumHUD (lower right corner hints), which I guess at the time used #vimiumHelpDialog selector.