1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:37:37 +00:00

FileManager: Use InputBox icons for file and directory creation

And set a window icon in desktop mode.
This commit is contained in:
thankyouverycool 2023-04-16 16:06:31 -04:00 committed by Andreas Kling
parent ca8918f310
commit 14072ce8f0
2 changed files with 7 additions and 2 deletions

View file

@ -384,6 +384,9 @@ ErrorOr<int> run_in_desktop_mode()
window->set_window_type(GUI::WindowType::Desktop);
window->set_has_alpha_channel(true);
auto desktop_icon = TRY(Gfx::Bitmap::load_from_file("/res/icons/16x16/desktop.png"sv));
window->set_icon(desktop_icon);
auto desktop_widget = TRY(window->set_main_widget<FileManager::DesktopWidget>());
TRY(desktop_widget->try_set_layout<GUI::VerticalBoxLayout>());