-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
BaseTheme default values. #2460
Comments
Same here. I think that we should improve
|
@oliviertassinari I really like your idea, and both can be optional! oh and we should remember to add isRtl to one of them. which one do you think is better for this property? |
Where shoud we put the |
@oliviertassinari But aren't some style information generated taking into account the |
Yes, but that's latter down the pip.
|
Ooo I see. alright then, tnx :D |
If you're going for a re-write, any chance to rename raw-theme to base-theme or core-theme or similar? I found that naming really confusing when 0.13 was introduced. Even though the "raw" themes are only the base values for theme-manager, conceptually they are the theme, as (other than custom themes) it what the user specifies to choose a theme. To me, raw says "unpopulated", "incomplete", "fill-in-the-blanks", which isn't the case. |
@mbrookes Yeah, can't say I don't agree with you on this. But this breaking change will be painful, just search rawTheme in the source :D I don't know if it's worth the effort, @oliviertassinari Thoughts? |
I agree with @mbrookes, |
Could you perhaps retain the "raw" theme files as stubs that import the new baseTheme, so the old names would still work? Regarding @subjectix point about number of usages - internally if the name rawTheme was still used it wouldn't matter so much if the documented / end-user visible name were change. But a global search-and-replace would easily fix it! 😄 |
@mbrookes good point. Maybe we can push this into the 0.14.0 release. But right now it's almost impossible to just do a global scan/replace, too many Big changes are occurring = too many conflicts will arise. we'll have to wait until the docs are migrated :D |
Oh, yes. Didn't think about merge conflicts. |
More reason why we have to implement this #2529. |
Thought I'd have a crack at implementing the base theme change: mbrookes@b92af82 I haven't changed the import for I removed the Let me know whether you think this is worth pursuing. I don't think it conflicts with the other proposed theme changes. |
@mbrookes It seems like everyone likes the term |
Yes, sorry to hijack this issue with mine. The deep merge work is much more interesting & important! I'll open a PR as [WIP], and no problem if it gets bounced as not the right direction for the project. |
@mbrookes baseTheme is definitely a much better name. rawTheme confused me at first too. 👍 👍 |
@oliviertassinari I'm working on this. don't touch it :D |
Can we close this issue? (#2635) |
@oliviertassinari Yes absolutely 😁 |
Without default values for raw themes many things will break. I think ThemeManager should deep assign the raw theme provided by user onto the default raw theme to prevent regressions like #2459. It will also make it easier to safely add options to raw themes, options we will have to add in the future. I had the same issue when I did an update.
@oliviertassinari Thoughts?
The text was updated successfully, but these errors were encountered: