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

feat: enhance ThemeBuilder API #27

Merged
merged 5 commits into from
Mar 17, 2024
Merged

Conversation

allan2
Copy link
Contributor

@allan2 allan2 commented Mar 16, 2024

This PR has three changes to ThemeBuilder. Changes are split by commit.

This replaces `ThemeBuilder::new` with `with_source`, enforcing the
presence of source.

`Default` trait is also removed.
This makes it easier to use the builder.

`builder.override_palette(Palette::Primary, blue).override_palette(Palette::Secondary, red)` is now `builder.primary(blue).secondary(red)`
This adds `ThemeBuilder::custom_colors` and removes the singular
`ThemeBuilder::custom_color`.
@Aiving Aiving merged commit c46c4d7 into Aiving:master Mar 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants