TextEditor: Add "Find Next" 16x16 icon
This commit is contained in:
parent
13f806b1b0
commit
a47b9fe490
Notes:
sideshowbarker
2024-07-19 07:25:43 +09:00
Author: https://github.com/bcoles Commit: https://github.com/SerenityOS/serenity/commit/a47b9fe490c Pull-request: https://github.com/SerenityOS/serenity/pull/1896
2 changed files with 1 additions and 1 deletions
|
@ -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(\"\")";
|
||||||
|
|
BIN
Base/res/icons/16x16/find-next.png
Normal file
BIN
Base/res/icons/16x16/find-next.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 443 B |
Loading…
Add table
Reference in a new issue