Change font color in theme

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

You’d think there’d be a “font color” option in the theme editor somewhere, but there isn’t. It’s not in the settings menu that pops up when you click on some font data. I know that text nodes have the “Custom Colors” option, but do I really have to manually set the font color for every text in the game?

:bust_in_silhouette: Reply From: njamster

I don’t think there is yet a way to define a global text color, no. Feel free to make a proposal on github! Meanwhile your best bet is to create a new theme, specify the font color for all node-types that support that (e.g. Label) and then set that theme as the default theme under Project Settings > Theme > Custom. You may need to close and re-open the project for it to take effect!

To clarify: you don’t have to set the font color on every node, but on every theme class which has text. Once you’ve done that and set the theme as default you’ll no longer need to set the color on every node you create.
For example, in the Theme resource, if you add a Label class item and change its font colors, all the labels in your game will have these colors by default.

Zylann | 2020-09-15 12:38

Okay, thanks!

exuin | 2020-09-15 16:48