-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Expose more AcceptDialog theming options #3832
Comments
I think we just need to bring back However, the button can be easily hidden with
This is controlled by styleboxes, not constants. There should already be a style for that. |
Well, that's kinda stupid that I missed that.
Hmm, are you sure? Seems like that for Popup, but AcceptDialog seems to be getting its margin from the theme of an internal node. This should be handled by a stylebox then, I think? |
I was sure, but not anymore 🙃 But ideally, yes. Styleboxes define both styling and content paddings (or rather content margins). It is possible that this was changed in There are definitely still styleboxes that affect the dialogs. Here's for example what they look like with the new default project theme if they are embedded and not separate windows: Worth investigating, I guess. |
Describe the project you are working on
Working on godotengine/godot#56772
Describe the problem or limitation you are having in your project
AcceptDialog has some baked in logic/theme options that are impossible to override. In my use case specifically:
The issue is seen in the following image. Left is regular AcceptDialog, right is with disabled margin/OK button.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Both of these things should be customizable, atleast in engine, but it can't hurt to expose them.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
It should be possible to hide all non-custom controls in AcceptDialog so that it is completely empty, while retaining the same behaviour. This method should be exposed as well, probably.
As for margins, i don't know that much about how themes work, but it would be best if it were constants that are overridable like others.
If this enhancement will not be used often, can it be worked around with a few lines of script?
Can't be worked around.
Is there a reason why this should be core and not an add-on in the asset library?
Can't be worked around.
The text was updated successfully, but these errors were encountered: