How to stylize ConfirmationDialog and the scrollbar of the ScrollContainer?

Godot Version

4.2.2

Question

I’ve looked at everything in the editor, and yet I cannot find any options to change the look of the aforementioned UI elements. The only parameters under Theme change the font (and, in case of the ScrollContainer, the panel, but not the scrollbar). How do I customize the looks of those UI elements?

Would be grateful for any help!

The ScrollContainer scrollbar’s theme settings are in the ScrollBar.

The ConfirmationDialog theme settings are in the AcceptDialog.

1 Like

Some UI elements are consists of other multiple Control Nodes, or derivative of them.

For ConfirmationDialog, you can check the type AcceptDialog in your theme for some elements. But for example, the buttons there are from the Button type. So you have to change the Button style also.

For ScrollContainer, I think you need to check the type VScrollBar to change the scrollbar style.

1 Like

Thank you both, I found where to change those.

The ScrollBar is fine, but I’m still experiencing some problems with the AcceptDialog window. I can’t seem to find where to change the color of the text inside the window (to make it different from the title of the window), and how to change the cross button (color and position?). Also there are square borders that I don’t know how to get rid of. Would be happy if someone could help!


(There should be text on the white background, but the text is white and thus invisible. You can also see the square borders that don’t go away.)

If you want to change the position of the buttons, I think it’s easier to just create your own dialog box with Panel Container, Label and Buttons. You’d achieve the same thing with more flexibility.

1 Like

Alright, that makes sense. Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.