Way to change default theme for newly created nodes?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By wombatTurkey
:warning: Old Version Published before Godot 3 was released.

Hey guys,

Loving Godot, it’s amazing. I followed this guide:


And created my own custom theme (well, re-skined the default one haha), but now, whenever I add new nodes into my game I have to manually go to the theme property and assign my new theme.

I’m just curious, as I’m developing a fairly large game, I was wondering if it’s possible to edit the default theme assigned to newly created nodes?

:bust_in_silhouette: Reply From: volzhs

AFAIK, theme is applied all nodes under themed node.

Control  <= theme assigned
    - Button
    - Label
    - Etc

if you assign theme to Control,
all children and grandchildren will have same theme.

So, make a container control node and assign theme,
and add rest of controls under the node.

Oh yep, this works! It does show null on the new node that I created under the Controller. But it’s still using the parent’s theme.

This is awesome, you just saved me a lot of time, thank you.

wombatTurkey | 2016-03-07 02:25

:bust_in_silhouette: Reply From: d2clon

For the people from the future like me. In Godot 4 I see there is a Project Settings for this:

Project Settings > General > GUI > Theme > Custom