-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added dark mode #74
Added dark mode #74
Conversation
dmb1107
commented
Oct 6, 2020
- I've added a toggle for dark mode that changes the CSS variables fg-color and bg-color (defined in base.css)
- Note: I wasn't able to figure out how to make the changes apply without a page refresh. I think it should be an easy fix for someone more knowledgable to do.
I’ll look into this later, I guess to apply the changes without reloading the page we could use the chrome internal messaging system to communicate between the popup and the core. I can take care of that |
@mdolr could use a media query and use system/browser dark mode settings. |
Hum, I'm testing this right now
Also @plushugh what do you mean exactly ? |
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme |
Oh didn't know about this, we should use it then, however that doesn't solve the problems I've listed already. |
|
isn't Also do you really have the container working in dark theme ? Because I've tested it before-after reloading, tried every scenario and I couldn't get it to work, it applies to the popup but it doesn't apply to the survol container (at least for me). If you could take a screenshot that would be nice 👍 |
I'm sorry for the confusion, I think it's best that you scrap my PR and let another person have a go at it. Edit: I just tested on my machine that I developed it on and it's no longer working. I think I had it working at some point and had some CSS cached that made it still in dark mode. |
It's fine don't worry. I'm not sure everything should be removed. |