diff options
author | Max Wipfli <mail@maxwipfli.ch> | 2021-05-21 18:51:06 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-21 18:41:28 +0100 |
commit | 229414b0020e6980984715626131081d62769c1f (patch) | |
tree | 1095a9d7c83db6ff258f7b46af5b4dfaf28db912 /Userland/Applications/HexEditor/HexEditorWidget.cpp | |
parent | f27e75ac0cdbcda6c8e748f16feb308211aec6d9 (diff) | |
download | serenity-229414b0020e6980984715626131081d62769c1f.zip |
Applications: Use titlecase and distinct underlined characters in menus
This changes (context) menus across the system to conform to titlecase
capitalization and to not underline the same character twice (for
accessing actions with Alt).
Diffstat (limited to 'Userland/Applications/HexEditor/HexEditorWidget.cpp')
-rw-r--r-- | Userland/Applications/HexEditor/HexEditorWidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/HexEditor/HexEditorWidget.cpp b/Userland/Applications/HexEditor/HexEditorWidget.cpp index 2be3aed1ce..76a9515c7a 100644 --- a/Userland/Applications/HexEditor/HexEditorWidget.cpp +++ b/Userland/Applications/HexEditor/HexEditorWidget.cpp @@ -129,7 +129,7 @@ void HexEditorWidget::initialize_menubar(GUI::Menubar& menubar) GUI::Application::the()->quit(); })); - m_goto_decimal_offset_action = GUI::Action::create("Go to Offset (&Decimal)...", { Mod_Ctrl | Mod_Shift, Key_G }, Gfx::Bitmap::load_from_file("/res/icons/16x16/go-forward.png"), [this](const GUI::Action&) { + m_goto_decimal_offset_action = GUI::Action::create("&Go to Offset (Decimal)...", { Mod_Ctrl | Mod_Shift, Key_G }, Gfx::Bitmap::load_from_file("/res/icons/16x16/go-forward.png"), [this](const GUI::Action&) { String value; if (GUI::InputBox::show(window(), value, "Enter decimal offset:", "Go to Offset") == GUI::InputBox::ExecOK && !value.is_empty()) { auto new_offset = value.to_int(); @@ -138,7 +138,7 @@ void HexEditorWidget::initialize_menubar(GUI::Menubar& menubar) } }); - m_goto_hex_offset_action = GUI::Action::create("Go to Offset (&Hex)...", { Mod_Ctrl, Key_G }, Gfx::Bitmap::load_from_file("/res/icons/16x16/go-forward.png"), [this](const GUI::Action&) { + m_goto_hex_offset_action = GUI::Action::create("Go to &Offset (Hex)...", { Mod_Ctrl, Key_G }, Gfx::Bitmap::load_from_file("/res/icons/16x16/go-forward.png"), [this](const GUI::Action&) { String value; if (GUI::InputBox::show(window(), value, "Enter hexadecimal offset:", "Go to Offset") == GUI::InputBox::ExecOK && !value.is_empty()) { auto new_offset = strtol(value.characters(), nullptr, 16); @@ -147,7 +147,7 @@ void HexEditorWidget::initialize_menubar(GUI::Menubar& menubar) }); auto& edit_menu = menubar.add_menu("&Edit"); - edit_menu.add_action(GUI::Action::create("&Fill Selection...", { Mod_Ctrl, Key_B }, [&](const GUI::Action&) { + edit_menu.add_action(GUI::Action::create("Fill &Selection...", { Mod_Ctrl, Key_B }, [&](const GUI::Action&) { String value; if (GUI::InputBox::show(window(), value, "Fill byte (hex):", "Fill Selection") == GUI::InputBox::ExecOK && !value.is_empty()) { auto fill_byte = strtol(value.characters(), nullptr, 16); |