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

Add custom style trait #535

Merged
merged 3 commits into from
Aug 7, 2024
Merged

Add custom style trait #535

merged 3 commits into from
Aug 7, 2024

Conversation

jrmoulton
Copy link
Collaborator

@jrmoulton jrmoulton commented Aug 6, 2024

Makes it so that external crates can implement custom style updaters in an efficient way. Previous implementations in floem had access to private items. Now the default implementation of the trait has access to those items and provides the updater.

This also makes the API for custom styles more consistent.

@jrmoulton jrmoulton force-pushed the custom-style-trait branch from b686a69 to d661a82 Compare August 7, 2024 01:11
@jrmoulton
Copy link
Collaborator Author

I've removed the custom style trait and just used Default and Into

@jrmoulton jrmoulton force-pushed the custom-style-trait branch from d661a82 to f8ede0b Compare August 7, 2024 01:13
@dzhou121 dzhou121 merged commit 32c41cb into lapce:main Aug 7, 2024
7 checks passed
@jrmoulton jrmoulton deleted the custom-style-trait branch September 18, 2024 02:34
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