1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:57:44 +00:00

PixelPaint: Add icon and keyboard shortcut for the "New Image" action

This commit is contained in:
Andreas Kling 2021-04-10 14:31:55 +02:00
parent 4e56e9fa2a
commit 9288e64179

View file

@ -129,7 +129,7 @@ int main(int argc, char** argv)
file_menu.add_action(
GUI::Action::create(
"&New Image...", [&](auto&) {
"&New Image...", { Mod_Ctrl, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/new.png"), [&](auto&) {
auto dialog = PixelPaint::CreateNewImageDialog::construct(window);
if (dialog->exec() == GUI::Dialog::ExecOK) {
auto image = PixelPaint::Image::create_with_size(dialog->image_size());