Use the gray color for all abstract classes

This commit is contained in:
MewPurPur 2023-08-01 20:04:28 +03:00 committed by MewPurPur
parent 6758a7f8c0
commit 398ca4e71a
21 changed files with 42 additions and 38 deletions

View file

@ -2795,7 +2795,7 @@ void EditorInspector::update_tree() {
// Find the icon corresponding to the script.
if (script_name != StringName()) {
category->icon = EditorNode::get_singleton()->get_class_icon(script_name, "Object");
category->icon = EditorNode::get_singleton()->get_class_icon(script_name);
} else {
category->icon = EditorNode::get_singleton()->get_object_icon(scr.ptr(), "Object");
}
@ -2803,7 +2803,7 @@ void EditorInspector::update_tree() {
}
if (category->icon.is_null() && !type.is_empty()) {
category->icon = EditorNode::get_singleton()->get_class_icon(type, "Object");
category->icon = EditorNode::get_singleton()->get_class_icon(type);
}
// Set the category label.