0 votes

So I am creating custom theme for my UI by styling Class Items with theme file.
Up on changing Window Dialogs > Styles > Panel, the dialog lost (became invisible) its TITLE panel.

Question is what Class Item name is the title panel for Window Dialogs ? So that I can theme it back to visible...

in Engine by (87 points)

1 Answer

+1 vote

The WindowDialog title likely didn't disappear. It's just that you need to make it taller so that it's visible. To do so, increase its top Expand Margin to a value like 24.

by (12,343 points)

Yes by increasing top expand margin title becomes visible, however I was wondering is it possible to give separate panel style for the title, like it had with default theme ?

You would need to set a different "Border/Color" than "Bg Color", as well as the top values for both "Border Width" and "Expand Margin".

If you want it as tight as the default one, 20 for both should work with the default font.
A border of 30 and margin of 24 gives a bit more space for the header

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.