mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Display the actual used theme items in the Inspector
Closes: godotengine/godot-proposals#4439. Allows viewing the default values of the currently used theme item in the Inspector. For theme item properties of resource type, editing the default resource does not make sense. Use **Make Unique** to create a copy before editing.
This commit is contained in:
parent
f60f69aa57
commit
bef64baa18
5 changed files with 76 additions and 11 deletions
|
|
@ -607,6 +607,7 @@ public:
|
|||
Color get_theme_color(const StringName &p_name, const StringName &p_theme_type = StringName()) const;
|
||||
int get_theme_constant(const StringName &p_name, const StringName &p_theme_type = StringName()) const;
|
||||
Variant get_theme_item(Theme::DataType p_data_type, const StringName &p_name, const StringName &p_theme_type = StringName()) const;
|
||||
Variant get_used_theme_item(const String &p_full_name, const StringName &p_theme_type = StringName()) const;
|
||||
#ifdef TOOLS_ENABLED
|
||||
Ref<Texture2D> get_editor_theme_icon(const StringName &p_name) const;
|
||||
#endif //TOOLS_ENABLED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue