How to change font color of custom theme/font?

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

I made a custom theme, added a custom font (and font data) to it, but the font is black. How can I change it? In the theme editor it shows as white, the label’s color is set to white, but it still appears black.

Is it a Label or a RichTextLabel?

johnygames | 2019-10-18 01:08

:bust_in_silhouette: Reply From: johnygames

You can change the color under Custom Colors. Check the Font Color option and pick the color that you want.

Since then, I found this option, but only in a new project. I realized that if I set a default theme for the project, and set default font, the color of texts will be black and I wont be able to change it (The option simply wont be there).
If I however set the default style of labels in the theme, I can change the color to white there, and also the custom color option will be back too. Can anyone reproduce this (I believe) bug?

KijeviGombooc | 2019-10-18 07:44

Trying to clarify things:

case 1.:
-I have a label, with default settings (no theme selected for it)
-I have a theme with default settings, except default font, which is set to a font of choice
-I dont have custom theme selected for project
Result:
I can change font color of label under: Label->Control->Custon Colors

case 2.:
-I have a label, with default settings except that the theme below is selected as theme
-I have a theme with default settings, except default font, which is set to a font of choice
-I dont have custom theme selected for project
Result:
I can change font color of label under: Label->Control->Custon Colors

case 3:
-I have a label, with default settings (no theme selected for it)
-I have a theme with default settings, except default font, which is set to a font of choice
-I have the theme above selected as custom theme selected for project
Result:
I cannot change font color of label under: Label->Control->Custon Colors, because the options: Custom Styles, Custom Fonts, Custom Colors, Custom Constants are not there/gone

case 4:
-I have a label, with default settings (no theme selected for it)
-I have a theme with default settings, except default font, which is set to a font of choice. Also, I added class item Label to the theme.
-I have the theme above selected as custom theme selected for project
Result:
I can change font color of label under: Label->Control->Custon Colors

KijeviGombooc | 2019-10-18 08:25

:bust_in_silhouette: Reply From: Karmavil

I found an answer here

You can see the the property name in the scene file, but that doesn’t explain that it has sense. I mean, custom_colors? really? I know it is a theme override (at least in my case) but come on… it should be still related to the theme section. That was pretty difficult to guess. Anyway…
You can verify if the returned value is equal to null.