You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
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.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user