-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix: button_padding
when using image+text buttons
#2510
Conversation
- add `image_margin` field on `Button` widget - implement setter method called `image_margin` for `Button` widget - use margin from `image_margin` field of `Button` widget in `Widget` trait functions
|
|
I just noticed that the style option before after Note that this makes much more sense, since I also explicitly set |
button_padding
when using image+text buttons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch
* feat(image-button-margin): implement image button margin - add `image_margin` field on `Button` widget - implement setter method called `image_margin` for `Button` widget - use margin from `image_margin` field of `Button` widget in `Widget` trait functions * feat(image-button-margin): update changelog * feat(image-button-margin): implement `map_or` clippy fix * feat(image-button-margin): remove margin field & fix button-padding instead * feat(image-button-margin): fix CI errors * feat(image-button-margin): update changelog to include fix * feat(image-button-margin): re-add changes after creating screenshots for PR
Changes of the PR:
button_padding
functionality for buttons with imagesOnly the last comment of this PR is important. All other comments aren't relevant after my self review anymore.
TODO:
CHANGELOG.md
under "Unreleased".cargo fmt
cargo clippy
./sh/check.sh
Closes #2509.