Skip to content

Commit a032c83

Browse files
bcolesawesomekling
authored andcommitted
HexEditor: Add menu icons for search menu items
1 parent 7c2754c commit a032c83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Userland/Applications/HexEditor/HexEditorWidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ HexEditorWidget::HexEditorWidget()
191191
}
192192

193193
auto& search_menu = menubar->add_menu("Search");
194-
search_menu.add_action(GUI::Action::create("Find", { Mod_Ctrl, Key_F }, [&](const GUI::Action&) {
194+
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&) {
195195
auto old_buffer = m_search_buffer.isolated_copy();
196196
if (FindDialog::show(window(), m_search_text, m_search_buffer) == GUI::InputBox::ExecOK) {
197197

@@ -211,7 +211,7 @@ HexEditorWidget::HexEditorWidget()
211211
}
212212
}));
213213

214-
search_menu.add_action(GUI::Action::create("Find", { Mod_None, Key_F3 }, [&](const GUI::Action&) {
214+
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&) {
215215
if (m_search_text.is_empty() || m_search_buffer.is_empty() || m_search_buffer.is_null()) {
216216
GUI::MessageBox::show(window(), "Nothing to search for", "Not found", GUI::MessageBox::Type::Warning);
217217
return;

0 commit comments

Comments
 (0)