mirror of https://github.com/godotengine/godot
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:
parent
79603b2f28
commit
a6d71f33be
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue