0 votes

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.

in Engine by (147 points)

Is it a Label or a RichTextLabel?

2 Answers

0 votes

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

by (1,859 points)

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?

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

0 votes

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.

by (22 points)
edited by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.