From 39bb346cef889c96c5be163b509353256be4cf43 Mon Sep 17 00:00:00 2001 From: Zac Date: Mon, 23 Nov 2020 23:56:44 +1000 Subject: LibGUI: Set FilePicker window icon based on mode (#4148) --- Libraries/LibGUI/FilePicker.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/LibGUI/FilePicker.cpp b/Libraries/LibGUI/FilePicker.cpp index af22e30b74..a925bdca74 100644 --- a/Libraries/LibGUI/FilePicker.cpp +++ b/Libraries/LibGUI/FilePicker.cpp @@ -85,12 +85,15 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, Options options, const switch (m_mode) { case Mode::Open: set_title("Open File"); + set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/open.png")); break; case Mode::OpenMultiple: set_title("Open Files"); + set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/open.png")); break; case Mode::Save: set_title("Save File"); + set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/save.png")); break; } set_title(m_mode == Mode::Open ? "Open File" : "Save File"); -- cgit v1.2.3