Skip to content
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

Live Reloading - should all styles be cleared before reapplying? #259

Open
markrickert opened this issue May 4, 2015 · 1 comment
Open
Labels

Comments

@markrickert
Copy link
Member

Take for instance background_color. Try this:

  1. Turn on live reloading
  2. style an element and add a background color... say color.blue
  3. change it to color.red. save. app updates to red.
  4. now just comment it out and save. color stays red.

I'm wondering if we should go through all the elements and remove any styles (or set the elements back to their "default" state) before reapplying the styles.

Thoughts?

@twerth
Copy link
Member

twerth commented May 4, 2015

I set it to clear. Then remove the color.

No way to remove a style.

Jamon is working on the ProMotion screens, in that case it will probably destroy and recreate the views, solving this problem.

We could get really clever and do stuff like looking for removed lines and having a set of defaults to apply based on what attribute was removed.

@twerth twerth added the question label May 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants