Function Control.getColor

Returns a color from assigned Theme with given name and associated with Control of given type.

Color getColor (
  const(String) name,
  const(String) type = GodotStringLiteral().str()
) nothrow @nogc const;

func ready(): modulate = get_color("font_color", "Button") #get the color defined for button fonts