Base+HexEditor: Add icons
This commit is contained in:
parent
adf6be45fb
commit
62102e3130
Notes:
sideshowbarker
2024-07-17 18:53:56 +09:00
Author: https://github.com/electrikmilk Commit: https://github.com/SerenityOS/serenity/commit/62102e3130 Pull-request: https://github.com/SerenityOS/serenity/pull/12499
3 changed files with 2 additions and 2 deletions
BIN
Base/res/icons/16x16/c.png
Normal file
BIN
Base/res/icons/16x16/c.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
BIN
Base/res/icons/16x16/hex.png
Normal file
BIN
Base/res/icons/16x16/hex.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3 KiB |
|
@ -233,13 +233,13 @@ void HexEditorWidget::initialize_menubar(GUI::Window& window)
|
|||
}
|
||||
}));
|
||||
edit_menu.add_separator();
|
||||
edit_menu.add_action(GUI::Action::create("Copy &Hex", { Mod_Ctrl, Key_C }, [&](const GUI::Action&) {
|
||||
edit_menu.add_action(GUI::Action::create("Copy &Hex", { Mod_Ctrl, Key_C }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/hex.png").release_value_but_fixme_should_propagate_errors(), [&](const GUI::Action&) {
|
||||
m_editor->copy_selected_hex_to_clipboard();
|
||||
}));
|
||||
edit_menu.add_action(GUI::Action::create("Copy &Text", { Mod_Ctrl | Mod_Shift, Key_C }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/edit-copy.png").release_value_but_fixme_should_propagate_errors(), [&](const GUI::Action&) {
|
||||
m_editor->copy_selected_text_to_clipboard();
|
||||
}));
|
||||
edit_menu.add_action(GUI::Action::create("Copy as &C Code", { Mod_Alt | Mod_Shift, Key_C }, [&](const GUI::Action&) {
|
||||
edit_menu.add_action(GUI::Action::create("Copy as &C Code", { Mod_Alt | Mod_Shift, Key_C }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/c.png").release_value_but_fixme_should_propagate_errors(), [&](const GUI::Action&) {
|
||||
m_editor->copy_selected_hex_to_clipboard_as_c_code();
|
||||
}));
|
||||
edit_menu.add_separator();
|
||||
|
|
Loading…
Add table
Reference in a new issue