Closed bennypowers closed 2 years ago
It also really drains battery and spins up my laptop fans
If you visit the Appearance settings, you can see the day/night themes toggle indefinitely. There are no issues on other git forges, GitLab, Sourcehut, Codeberg, etc.
Setting "Alternate color source" to anything other than "Favicon" stops the strobing, but also prevents VivaldiFox from working on most other websites
This is an interesting issue:
prefers-color-scheme
media query updates and sets the favicon to white/black accordingly (white on dark theme, black on light theme)prefers-color-scheme
media query value based on the toolbar background (black -> dark, white -> light)So what ends up happening here is:
A workaround here would be setting layout.css.prefers-color-scheme.content-override
to 2
in about:config
to restore former behavior.
Though I think the extension can do that by itself, so I might do that for the next release.
@emilio Do you know if there's something that can be done directly on the Firefox side? I think Firefox shouldn't react to per-window/dynamic theme changes (updates given by browser.theme.update()
) for prefers-color-scheme imo.
@bennypowers @toastal This should be fixed when Version 3.2 comes out. Thanks for reporting!
@nt1m Awesome. Great work!
That seems really odd to me though. I built a reactive favicon recently and did the prefers-color-scheme
wholly inside the SVG's <style>
tag. Are they involving JavaScript where they don't need to?
Hello!
I'm a long time user. Thanks for publishing this addon.
I've noticed that on macOS 11.6.1 using Firefox 95.0b3 (64-bit), the browser's color scheme strobes back and forth on github.com.
I notice this in the browser bar, as well as in dev tools, which strobe along with the toolbar.
This only seems to happen on github.com