How does one theme the FileDialog panel?

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

If I create a theme and apply it to a WindowDialog, I notice that the theme’s panel style doesn’t get used.

For a WindowDialog, I can set the “Panel” theme under “Custom Styles” to get the effect I want.

FileDialog, however, has no such Custom Styles, so I don’t seem to be able to theme the panel’s background color and such.

Am I missing something? Should this be considered a bug?

Thank you.

:bust_in_silhouette: Reply From: Wakatta

You basically answered your own question.

Create a new theme in the inspector
When the theme editor opens click Edit Theme then Add Class Items choose the Windows Dialog Type and Add All.

In the Inspector the style options for Window Dialog should become available so style as needed.

Indeed, thanks. I wound up figuring out that I simply didn’t understand how theming works. Could delete this question if it’s useless.

cammytown | 2021-04-17 18:42