Skip to content

Commit de6879b

Browse files
Update functions names in example code to match 4.x nomenclature
Changed the function to override theme font color from "add_color_override" to "add_theme_color_override", as the previous version is not recognized by my 4.3 Godot Editor. Judging by the documentation archives, it seems that "add_color_override" was the version used in Godot 3. From Control's 4.3 documentation, it seems C# functions have also been updated to include Theme in their name. It would make sense, so I updated it too, but I'm not 100% sure it actually works this way.
1 parent 160b937 commit de6879b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/ui/gui_skinning.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ is applied to them. Those methods accept the theme type as one of the arguments.
131131
.. code-tab:: gdscript
132132

133133
var accent_color = get_theme_color("accent_color", "MyType")
134-
label.add_color_override("font_color", accent_color)
134+
label.add_theme_color_override("font_color", accent_color)
135135

136136
.. code-tab:: csharp
137137

138138
Color accentColor = GetThemeColor("accent_color", "MyType");
139-
label.AddColorOverride("font_color", accentColor);
139+
label.AddThemeColorOverride("font_color", accentColor);
140140

141141
To give more customization opportunities types can also be linked together as
142142
type variations. This is another use-case for custom theme types. For example,

0 commit comments

Comments
 (0)