FilePicker: Add folder icon to location box

It looks good in FileManager so it will also look good here :^)

FileManager commit: b8a50e9
This commit is contained in:
Linus Groh 2020-07-02 22:59:54 +01:00 committed by Andreas Kling
parent f8fa495d67
commit 33ca151eb0
Notes: sideshowbarker 2024-07-19 05:13:49 +09:00

View file

@ -110,6 +110,7 @@ FilePicker::FilePicker(Mode mode, const StringView& file_name, const StringView&
location_textbox.set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
location_textbox.set_preferred_size(0, 22);
location_textbox.set_text(path);
location_textbox.set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/filetype-folder.png"));
m_view = vertical_container.add<MultiView>();
m_view->set_model(SortingProxyModel::create(*m_model));