From de6879b237dd3a56e2ae37bdab99104f3b9127b1 Mon Sep 17 00:00:00 2001 From: Takapapatapaka Date: Wed, 4 Dec 2024 16:43:28 +0100 Subject: [PATCH] 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. --- tutorials/ui/gui_skinning.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/ui/gui_skinning.rst b/tutorials/ui/gui_skinning.rst index 40edba6780e..2ba9a888a68 100644 --- a/tutorials/ui/gui_skinning.rst +++ b/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,