Merge pull request #10294 from leezh/fix_10245
Project manager UI displaced by long paths #10245
This commit is contained in:
commit
a3d85c07af
1 changed files with 3 additions and 0 deletions
|
@ -848,6 +848,7 @@ void ProjectManager::_load_recent_projects() {
|
||||||
|
|
||||||
VBoxContainer *vb = memnew(VBoxContainer);
|
VBoxContainer *vb = memnew(VBoxContainer);
|
||||||
vb->set_name("project");
|
vb->set_name("project");
|
||||||
|
vb->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||||
hb->add_child(vb);
|
hb->add_child(vb);
|
||||||
Control *ec = memnew(Control);
|
Control *ec = memnew(Control);
|
||||||
ec->set_custom_minimum_size(Size2(0, 1));
|
ec->set_custom_minimum_size(Size2(0, 1));
|
||||||
|
@ -855,12 +856,14 @@ void ProjectManager::_load_recent_projects() {
|
||||||
Label *title = memnew(Label(project_name));
|
Label *title = memnew(Label(project_name));
|
||||||
title->add_font_override("font", gui_base->get_font("large", "Fonts"));
|
title->add_font_override("font", gui_base->get_font("large", "Fonts"));
|
||||||
title->add_color_override("font_color", font_color);
|
title->add_color_override("font_color", font_color);
|
||||||
|
title->set_clip_text(true);
|
||||||
vb->add_child(title);
|
vb->add_child(title);
|
||||||
Label *fpath = memnew(Label(path));
|
Label *fpath = memnew(Label(path));
|
||||||
fpath->set_name("path");
|
fpath->set_name("path");
|
||||||
vb->add_child(fpath);
|
vb->add_child(fpath);
|
||||||
fpath->set_modulate(Color(1, 1, 1, 0.5));
|
fpath->set_modulate(Color(1, 1, 1, 0.5));
|
||||||
fpath->add_color_override("font_color", font_color);
|
fpath->add_color_override("font_color", font_color);
|
||||||
|
fpath->set_clip_text(true);
|
||||||
|
|
||||||
scroll_childs->add_child(hb);
|
scroll_childs->add_child(hb);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue