How NOT to inherit the theme of the parent node?
Asked Answered
F

2

0

Hello.
There is such a scene tree:

- Control [uses a custom theme]
- - FileDialog [inherits the Control theme]

But I need to use Godot default UI theme for FileDialog, can this be implemented? Creating an empty theme for the FileDialog does not resolve the issue.

Fishbowl answered 14/4, 2023 at 13:31 Comment(0)
D
0

Well, yeah an empty theme won't be overriding the properties, so they would still fall back to inheriting from the top.

You have to click on 'Manage Items' in the theme editor area. Next, in the overlay window that opens click on the tab you are after, Default Theme, or if you actually meant the Editor Theme then on that tab. Then in chosen tab, at the bottom you should see a button called 'Select with Data' pressing that should import all the controls themed and their respective properties data.

With that done you should now have a theme overriding everything either replicating the default theme or the editor theme respectively. Save the theme.

Doodlesack answered 14/4, 2023 at 14:30 Comment(0)
F
0

Doodlesack Thanks, this is exactly what I wanted!

Fishbowl answered 15/4, 2023 at 4:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.