From a032c836c43347aae9e082a79ca3ecf681e7b26f Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Tue, 23 Feb 2021 12:15:13 +0000 Subject: [PATCH] HexEditor: Add menu icons for search menu items --- Userland/Applications/HexEditor/HexEditorWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Applications/HexEditor/HexEditorWidget.cpp b/Userland/Applications/HexEditor/HexEditorWidget.cpp index 2ab3ca8edf..40d0f2aa97 100644 --- a/Userland/Applications/HexEditor/HexEditorWidget.cpp +++ b/Userland/Applications/HexEditor/HexEditorWidget.cpp @@ -191,7 +191,7 @@ HexEditorWidget::HexEditorWidget() } auto& search_menu = menubar->add_menu("Search"); - search_menu.add_action(GUI::Action::create("Find", { Mod_Ctrl, Key_F }, [&](const GUI::Action&) { + search_menu.add_action(GUI::Action::create("Find", { Mod_Ctrl, Key_F }, Gfx::Bitmap::load_from_file("/res/icons/16x16/find.png"), [&](const GUI::Action&) { auto old_buffer = m_search_buffer.isolated_copy(); if (FindDialog::show(window(), m_search_text, m_search_buffer) == GUI::InputBox::ExecOK) { @@ -211,7 +211,7 @@ HexEditorWidget::HexEditorWidget() } })); - search_menu.add_action(GUI::Action::create("Find", { Mod_None, Key_F3 }, [&](const GUI::Action&) { + search_menu.add_action(GUI::Action::create("Find next", { Mod_None, Key_F3 }, Gfx::Bitmap::load_from_file("/res/icons/16x16/find-next.png"), [&](const GUI::Action&) { if (m_search_text.is_empty() || m_search_buffer.is_empty() || m_search_buffer.is_null()) { GUI::MessageBox::show(window(), "Nothing to search for", "Not found", GUI::MessageBox::Type::Warning); return;