From ea512ebc2b45b1c0d43eaab53b6b3d71f45db38b Mon Sep 17 00:00:00 2001 From: bubnikv Date: Fri, 30 Aug 2019 16:05:12 +0200 Subject: [PATCH] Fixed menu icons for undo / redo. --- resources/icons/redo.svg | 17 ++++++++--------- resources/icons/redo_menu.svg | 13 +++++++++++++ resources/icons/undo.svg | 17 ++++++++--------- resources/icons/undo_menu.svg | 13 +++++++++++++ src/slic3r/GUI/MainFrame.cpp | 4 ++-- 5 files changed, 44 insertions(+), 20 deletions(-) create mode 100644 resources/icons/redo_menu.svg create mode 100644 resources/icons/undo_menu.svg diff --git a/resources/icons/redo.svg b/resources/icons/redo.svg index ed1fe75c8f5..9109779bbca 100644 --- a/resources/icons/redo.svg +++ b/resources/icons/redo.svg @@ -1,13 +1,12 @@ - + - + + + + + diff --git a/resources/icons/redo_menu.svg b/resources/icons/redo_menu.svg new file mode 100644 index 00000000000..ed1fe75c8f5 --- /dev/null +++ b/resources/icons/redo_menu.svg @@ -0,0 +1,13 @@ + + + + + diff --git a/resources/icons/undo.svg b/resources/icons/undo.svg index 99241bcaeed..fbc580d884b 100644 --- a/resources/icons/undo.svg +++ b/resources/icons/undo.svg @@ -1,13 +1,12 @@ - + - + + + + + diff --git a/resources/icons/undo_menu.svg b/resources/icons/undo_menu.svg new file mode 100644 index 00000000000..99241bcaeed --- /dev/null +++ b/resources/icons/undo_menu.svg @@ -0,0 +1,13 @@ + + + + + diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 6e3d1406bc3..dfe3a9cf923 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -568,10 +568,10 @@ void MainFrame::init_menubar() editMenu->AppendSeparator(); append_menu_item(editMenu, wxID_ANY, _(L("&Undo")) + sep + GUI::shortkey_ctrl_prefix() + sep_space + "Z", _(L("Undo")), [this](wxCommandEvent&) { m_plater->undo(); }, - "undo", nullptr, [this](){return m_plater->can_undo(); }, this); + "undo_menu", nullptr, [this](){return m_plater->can_undo(); }, this); append_menu_item(editMenu, wxID_ANY, _(L("&Redo")) + sep + GUI::shortkey_ctrl_prefix() + sep_space + "Y", _(L("Redo")), [this](wxCommandEvent&) { m_plater->redo(); }, - "redo", nullptr, [this](){return m_plater->can_redo(); }, this); + "redo_menu", nullptr, [this](){return m_plater->can_redo(); }, this); editMenu->AppendSeparator(); append_menu_item(editMenu, wxID_ANY, _(L("&Copy")) + sep + GUI::shortkey_ctrl_prefix() + sep_space + "C",