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

Implement Theme as a Trait #43

Merged
merged 6 commits into from
Aug 1, 2024
Merged

Implement Theme as a Trait #43

merged 6 commits into from
Aug 1, 2024

Conversation

conways-glider
Copy link
Owner

No description provided.

@conways-glider conways-glider self-assigned this Aug 1, 2024
@conways-glider conways-glider marked this pull request as ready for review August 1, 2024 06:44
@conways-glider conways-glider merged commit 98f1292 into theming Aug 1, 2024
@conways-glider conways-glider deleted the theming-trait branch August 1, 2024 06:45
conways-glider added a commit that referenced this pull request Aug 1, 2024
* Use a trait instead of an enum

* Update documentation

* Run cargo fmt

* Clean up test

* Rename `Themey` to `Theme`

* Add identicon methods around theme
conways-glider added a commit that referenced this pull request Aug 20, 2024
* Add basic theming objects

* Convert to using theme object

* Clean up comments and fix tests.

The fact that the consistency test had to change means that we will have
to consider this feature a breaking change and thus a major version
bump.

* Update map and bitshift logic

* Move theme to folder module instead of file

* Run cargo fmt

* Move file yet again

* Implement Theme as a Trait (#43)

* Use a trait instead of an enum

* Update documentation

* Run cargo fmt

* Clean up test

* Rename `Themey` to `Theme`

* Add identicon methods around theme

* Run cargo fmt

* Test on all features

* Fix matrix

* Move color structs to their own module

* Change Theme trait to return Result<> (#45)

* Change Theme trait to return results

* Add ThemeError

* Update testing

* Add default feature

* Use Arc<>

* Run cargo clippy on tests

* Test consistency of themes

* Clean up tests

* Add lints around unwrap and expect

* Add constructors for themes

* Run cargo fmt

* Add theme example
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.

1 participant