Explanation of 'String type' argument in Theme API

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rinart73
:warning: Old Version Published before Godot 3 was released.

There is methods in Theme, which allow to manipulate clear color of it:

void clear_color( String name, String type )
void set_color( String name, String type, Color color )

But there is no explanation of format of the first and second argument.

Can someone explain please?

For the reference, the (for now) almost empty class reference for Theme: Theme — Godot Engine (latest) documentation in English

It looks like those name and type arguments are used in almost all methods, so they probably refer to some components of the theme.

Akien | 2016-05-19 11:38

Edditing theme is way easier using the GUI than script.
http://docs.godotengine.org/en/latest/tutorials/2d/gui_skinning.html#creating-a-theme

Kermer | 2016-05-19 15:32

I’d like to know both ways to edit gui

rinart73 | 2016-05-19 15:38

:bust_in_silhouette: Reply From: Akien

Based on the source code, the type argument should be one of “icons”, “styles”, “fonts”, “colors” and “constants”.

Note sure about the name argument, you’d have to experiment with it a bit. The class reference needs some work by someone able to read C++ to be filled up; the whole API is a bit confusing though IMO, so maybe it should be reworked a bit by developers to be made more user-friendly.