summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/FilePicker.cpp
diff options
context:
space:
mode:
authorZac <zacary.gillerat@connect.qut.edu.au>2020-11-23 23:56:44 +1000
committerGitHub <noreply@github.com>2020-11-23 14:56:44 +0100
commit39bb346cef889c96c5be163b509353256be4cf43 (patch)
tree1365c452be5b546ee6e6283fb17a45ccc0ef6000 /Libraries/LibGUI/FilePicker.cpp
parentdf758a5a5163407c06165730a90a729f45eb7984 (diff)
downloadserenity-39bb346cef889c96c5be163b509353256be4cf43.zip
LibGUI: Set FilePicker window icon based on mode (#4148)
Diffstat (limited to 'Libraries/LibGUI/FilePicker.cpp')
-rw-r--r--Libraries/LibGUI/FilePicker.cpp3
1 files changed, 3 insertions, 0 deletions
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");