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

Base+LibGUI: Add unique "Save As" icon

Icon by: Mustafa Quraish <mustafaq9@gmail.com>
This commit is contained in:
thankyouverycool 2022-01-04 19:07:07 -05:00 committed by Andreas Kling
parent 7c69830169
commit d375904978
3 changed files with 2 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

View file

@ -41,7 +41,7 @@ NonnullRefPtr<Action> make_save_action(Function<void(Action&)> callback, Core::O
NonnullRefPtr<Action> make_save_as_action(Function<void(Action&)> callback, Core::Object* parent) NonnullRefPtr<Action> make_save_as_action(Function<void(Action&)> callback, Core::Object* parent)
{ {
auto action = Action::create("Save &As...", { Mod_Ctrl | Mod_Shift, Key_S }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/save.png").release_value_but_fixme_should_propagate_errors(), move(callback), parent); auto action = Action::create("Save &As...", { Mod_Ctrl | Mod_Shift, Key_S }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/save-as.png").release_value_but_fixme_should_propagate_errors(), move(callback), parent);
action->set_status_tip("Save the current file with a new name"); action->set_status_tip("Save the current file with a new name");
return action; return action;
} }

View file

@ -79,7 +79,7 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, StringView filename, St
break; break;
case Mode::Save: case Mode::Save:
set_title("Save as"); set_title("Save as");
set_icon(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/save.png").release_value_but_fixme_should_propagate_errors()); set_icon(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/save-as.png").release_value_but_fixme_should_propagate_errors());
break; break;
} }
resize(560, 320); resize(560, 320);