-
-
Notifications
You must be signed in to change notification settings - Fork 21.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
[Button] Adds theme option to align button text and icon to either largest or current stylebox. #92701
Conversation
Tested, hover-pressed buttons look fine, including icons, but this doesn't seem to fix #92466: ![]() |
Updated, should fix it as well. |
Works 🙏 |
…rgest or current stylebox.
@@ -828,6 +850,8 @@ void Button::_bind_methods() { | |||
|
|||
BIND_THEME_ITEM(Theme::DATA_TYPE_CONSTANT, Button, h_separation); | |||
BIND_THEME_ITEM(Theme::DATA_TYPE_CONSTANT, Button, icon_max_width); | |||
|
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.
Although the types aren't really sorted/grouped properly anway.
Thanks! |
Alternative to #92625
Adds new theme option (disabled for default theme and enabled for the editor theme) to control whether button elements are aligned to largest or current stylebox.
Fixes button issues cause by #92009 without reintroducing #92009 (comment)
Fixes #92602
Fixes #92466