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

@ -367,7 +367,7 @@ void EditorHelp::_add_type_icon(const String &p_type, int p_size, const String &
Ref<Texture2D> icon = EditorNode::get_singleton()->get_class_icon(p_type, p_fallback);
Vector2i size = Vector2i(icon->get_width(), icon->get_height());
if (p_size > 0) {
// Ensures icon scales proportionally on both axis, based on icon height.
// Ensures icon scales proportionally on both axes, based on icon height.
float ratio = p_size / float(size.height);
size.width *= ratio;
size.height *= ratio;