godotengine / godotengine/godot-docs

Confusing add_theme_override functions name parameter

Open
#11,838 0 comments 0 reactions 0 assignees View on GitHub
area:class reference enhancement
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version:**
4.5

**Issue description:**
The `name` parameter in all `add_theme_[something]_override` is not properly explained and users may have a very difficult time using those functions because of it. I had to find this topic to be able to use `add_theme_font_override` :

https://forum.godotengine.org/t/godot-4-font-size-does-not-change-when-set-by-code/569/2

I still don't understand how it works though. If a theoretical explaination of what `name` means in this context isn't appropriate, I suggest to include one example :

`add_theme_font_size_override("font_size", font_size)`

So that users can make the function work without having to dig up the forum thread.

**URL to the documentation page (if already existing):**
https://docs.godotengine.org/en/4.4/classes/class_control.html#class-control-method-add-theme-font-override

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.