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

Replacing f32 by iced::Padding and iced::Pixels when possible #281

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

Ultraxime
Copy link
Contributor

@Ultraxime Ultraxime commented Aug 26, 2024

I replaced the f32 by impl Into<Padding> or impl Into<Pixels> in function where it made sense, to mimic the behavior of iced.

And at the same time, replaced the f32 by Padding and Pixels in structures to allow more flexibility.

Normally, I tried every example to check that it was correct. (by the way, wouldn't be cleaner to use the example feature of cargo rather than workspace members ?)

Copy link
Collaborator

@genusistimelord genusistimelord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a job well done. Thank you.

@genusistimelord genusistimelord merged commit 61ccb3e into iced-rs:main Aug 26, 2024
2 checks 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