From ae3a72d2918c4d9ff8fbff27f70fb8c1045ac693 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 ed1fe75c8..9109779bb 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 000000000..ed1fe75c8 --- /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 99241bcae..fbc580d88 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 000000000..99241bcae --- /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 6e3d1406b..dfe3a9cf9 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",