Skip to content

Commit

Permalink
Base+LibGUI: Add unique "Save As" icon
Browse files Browse the repository at this point in the history
Icon by: Mustafa Quraish <mustafaq9@gmail.com>
  • Loading branch information
thankyouverycool authored and awesomekling committed Jan 5, 2022
1 parent 7c69830 commit d375904
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added Base/res/icons/16x16/save-as.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Userland/Libraries/LibGUI/CommonActions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
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");
return action;
}
Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibGUI/FilePicker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, StringView filename, St
break;
case Mode::Save:
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;
}
resize(560, 320);
Expand Down

0 comments on commit d375904

Please sign in to comment.