Repository navigation
Clean up when switching to another theme - #87
Conversation
+ major refactoring
There was a problem hiding this comment.
What do you think about renaming this file? It's a bit confusing to have both a config and a settings file.
There was a problem hiding this comment.
main.coffee? I guess most packages use the package name as the main file, but I thought to avoid that so it's consistent with the light theme.
There was a problem hiding this comment.
Yeah main.coffee would work I think
There was a problem hiding this comment.
Ok.. let's change it to that.
|
Our core packages typically keep their config inline in their |
Ok, sure. |
|
I added some specs 🚢 |
Clean up when switching to another theme
|
@simurai does this need to be fixed in |
Adds the same changes as atom/one-dark-ui#87
|
Yes, made another PR for One light: atom/one-light-ui#33 Identical, except replaced the |
This PR makes sure that there are no attributes/styles left after switching to another theme.
Before: When switching to another theme, the
theme-one-dark-ui-layoutmodeattribute andfont-sizestyle is kept in the DOM until reloading.After: Now it removes them as soon as switching to another theme.
Plus some major refactoring, probably better to just check out the file and not the diff.
Fixes #80