godotengine / godotengine/godot-docs
Confusing add_theme_override functions name parameter
- 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.