mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibGUI: Set FilePicker window icon based on mode (#4148)
This commit is contained in:
parent
df758a5a51
commit
39bb346cef
Notes:
sideshowbarker
2024-07-19 01:18:10 +09:00
Author: https://github.com/supex0fan Commit: https://github.com/SerenityOS/serenity/commit/39bb346cef8 Pull-request: https://github.com/SerenityOS/serenity/pull/4148 Issue: https://github.com/SerenityOS/serenity/issues/3910
1 changed files with 3 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue