From a6d71f33be218b3f55f194d3a191e1b0669e693b Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 22 Jul 2025 23:32:35 +0200 Subject: [PATCH] Reduce icon size in editor inspector NodePath properties to match design size Previously, icons were displayed at a slightly higher size than they were designed for, which made them look blurry. --- editor/inspector/editor_properties.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/inspector/editor_properties.cpp b/editor/inspector/editor_properties.cpp index 2de4a8ac0ae..345d44a8749 100644 --- a/editor/inspector/editor_properties.cpp +++ b/editor/inspector/editor_properties.cpp @@ -3260,6 +3260,8 @@ EditorPropertyNodePath::EditorPropertyNodePath() { assign->set_h_size_flags(SIZE_EXPAND_FILL); assign->set_clip_text(true); assign->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED); + // Use a constant width for the icon to avoid sizing issues or blurry icons. + assign->add_theme_constant_override("icon_max_width", get_theme_constant(SNAME("class_icon_size"), EditorStringName(Editor))); assign->set_expand_icon(true); assign->connect(SceneStringName(pressed), callable_mp(this, &EditorPropertyNodePath::_node_assign)); assign->connect(SceneStringName(draw), callable_mp(this, &EditorPropertyNodePath::_assign_draw));