Browse Source

Merge pull request #10368 from Takapapatapaka/patch-1

Fix outdated function names in GUI skinning example code
Max Hilbrunner 8 months ago
parent
commit
d8be4704ad
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tutorials/ui/gui_skinning.rst

+ 2 - 2
tutorials/ui/gui_skinning.rst

@@ -131,12 +131,12 @@ is applied to them. Those methods accept the theme type as one of the arguments.
  .. code-tab:: gdscript
 
    var accent_color = get_theme_color("accent_color", "MyType")
-   label.add_color_override("font_color", accent_color)
+   label.add_theme_color_override("font_color", accent_color)
 
  .. code-tab:: csharp
 
    Color accentColor = GetThemeColor("accent_color", "MyType");
-   label.AddColorOverride("font_color", accentColor);
+   label.AddThemeColorOverride("font_color", accentColor);
 
 To give more customization opportunities types can also be linked together as
 type variations. This is another use-case for custom theme types. For example,