Skip to content

Commit d8be470

Browse files
authored
Merge pull request #10368 from Takapapatapaka/patch-1
Fix outdated function names in GUI skinning example code
2 parents 5589314 + de6879b commit d8be470

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)