Skip to content
This repository was archived by the owner on Sep 7, 2018. It is now read-only.

Clean up when switching to another theme - #87

Merged
kevinsawicki merged 8 commits into
masterfrom
sm-settings
Aug 5, 2015
Merged

kevinsawicki merged 8 commits into
masterfrom
sm-settings

Conversation

@simurai

@simurai simurai commented Jul 29, 2015

Copy link
Copy Markdown
Contributor

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-layoutmode attribute and font-size style 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

+ major refactoring
Comment thread lib/settings.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about renaming this file? It's a bit confusing to have both a config and a settings file.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah main.coffee would work I think

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.. let's change it to that.

@kevinsawicki

Copy link
Copy Markdown
Contributor

Our core packages typically keep their config inline in their main instead of a separate file, mind moving it back into main.coffee?

@simurai

simurai commented Aug 4, 2015

Copy link
Copy Markdown
Contributor Author

Our core packages typically keep their config inline in their main

Ok, sure.

@kevinsawicki

Copy link
Copy Markdown
Contributor

I added some specs 🚢

kevinsawicki added a commit that referenced this pull request Aug 5, 2015
Clean up when switching to another theme
@kevinsawicki
kevinsawicki merged commit d2e4503 into master Aug 5, 2015
@kevinsawicki
kevinsawicki deleted the sm-settings branch August 5, 2015 20:19
@kevinsawicki

Copy link
Copy Markdown
Contributor

@simurai does this need to be fixed in one-light-ui as well?

simurai added a commit to atom/one-light-ui that referenced this pull request Aug 6, 2015
@simurai

simurai commented Aug 6, 2015

Copy link
Copy Markdown
Contributor Author

Yes, made another PR for One light: atom/one-light-ui#33

Identical, except replaced the dark -> light.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants