TextEditor: Add "Find Next" 16x16 icon

This commit is contained in:
Brendan Coles 2020-04-20 21:54:16 +00:00 committed by Andreas Kling
parent 13f806b1b0
commit a47b9fe490
Notes: sideshowbarker 2024-07-19 07:25:43 +09:00
2 changed files with 1 additions and 1 deletions

View file

@ -98,7 +98,7 @@ TextEditorWidget::TextEditorWidget()
m_find_textbox = m_find_widget->add<GUI::TextBox>(); m_find_textbox = m_find_widget->add<GUI::TextBox>();
m_replace_textbox = m_replace_widget->add<GUI::TextBox>(); m_replace_textbox = m_replace_widget->add<GUI::TextBox>();
m_find_next_action = GUI::Action::create("Find next", { Mod_Ctrl, Key_G }, [&](auto&) { m_find_next_action = GUI::Action::create("Find next", { Mod_Ctrl, Key_G }, Gfx::Bitmap::load_from_file("/res/icons/16x16/find-next.png"), [&](auto&) {
auto needle = m_find_textbox->text(); auto needle = m_find_textbox->text();
if (needle.is_empty()) { if (needle.is_empty()) {
dbg() << "find_next(\"\")"; dbg() << "find_next(\"\")";

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B