What is the property in a theme to change a File Dialog title background color?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By cgeadas

I’m doing some UI customisation with themes. One of the things I’m changing is the File Dialog box. I’ve found the color and font for the title but not the property to change the background color/opacity. It defaults to completely transparent, as the screenshot shows.

enter image description here
enter image description here

The files area is themed by a Tree class, the buttons by a Button, but I can’t figure what controls the title opacity. It should be near the color and font, I think.

Anyone can help? Thank you.

:bust_in_silhouette: Reply From: cgeadas

Answered here:

“This is because the window panel itself is used to draw the title bar background. You can do so by modifying its StyleBox, increasing the top Expand Margin to 20 pixels or so, and setting the top border width to 20 pixels if you’d like it to use a different background color.”