How to refer to Control parameter "font_color"

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

I’m trying to change font color for label using this

dmg_popup.font_color = Color( 0, 0, 0, 1)

but in return I get

Invalid set index 'font_color' (on base: 'Label') with value of type 'Color'.

When I did the same refering to node parameter using

dmg_popup.text = "example"

It worked out nicely
Why dmg_popup.font_color doesn’t work?

:bust_in_silhouette: Reply From: godot_dev_

I believe dmg_popup.set("custom_colors/font_color",Color(0,0,0,1)) will accomplish what you want.

Yes it did, you have my gratitude

TraitPhoe | 2023-06-14 21:09