-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
MenuButton
ignores custom styles because it's flat
by default
#30768
Comments
This comment has been minimized.
This comment has been minimized.
This still doesn't work. Am messing with it right now and none of the theme stuff functions. |
By default the I think the |
If MenuButton wasn't flat by default, then we'd have to override the style in the editor. It can certainly be done, but it will break the appearance in existing projects. |
I see. It should be handled similar to the |
@dominiks We don't need to add a FlatMenuButton node for this. We just need to modify the editor theme so the Speaking of which, we should also remove ToolButton in the long run as it's identical to a Button set to to be flat. (We'll have to add some code to import existing projects without breaking.) Also, the |
Oh right it's the Yes, you can find the information that the button is flat by default in the documentation but the behaviour of the |
MenuButton
ignores custom styles because it's flat
by default
I've tentatively opened PR #72418 to fix it, not sure if it's too late in the beta process for a change like this to make it in. I'm not sure how to keep the current behavior of MenuButtons in the editor, editing the theme alone doesn't look like it'll work that well. Maybe the best way is by manually setting the correct MenuButtons to flat when they're instanced? If anyone can offer advice it'd be much appreciated! |
the menubutton's normal style don't seem to be rendering even though it's set to a the same texturestyle as the button below it

The text was updated successfully, but these errors were encountered: