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/TextEditor/MainWidget.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/TextEditor/MainWidget.cpp')
-rw-r--r-- | Userland/Applications/TextEditor/MainWidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/TextEditor/MainWidget.cpp b/Userland/Applications/TextEditor/MainWidget.cpp index 0f3cfe8068..a0171ebcc9 100644 --- a/Userland/Applications/TextEditor/MainWidget.cpp +++ b/Userland/Applications/TextEditor/MainWidget.cpp @@ -114,7 +114,7 @@ MainWidget::MainWidget() } }); - m_find_previous_action = GUI::Action::create("Find &Previous", { Mod_Ctrl | Mod_Shift, Key_G }, Gfx::Bitmap::load_from_file("/res/icons/16x16/find-previous.png"), [&](auto&) { + m_find_previous_action = GUI::Action::create("Find Pr&evious", { Mod_Ctrl | Mod_Shift, Key_G }, Gfx::Bitmap::load_from_file("/res/icons/16x16/find-previous.png"), [&](auto&) { auto needle = m_find_textbox->text(); if (needle.is_empty()) return; @@ -137,7 +137,7 @@ MainWidget::MainWidget() } }); - m_replace_action = GUI::Action::create("&Replace", { Mod_Ctrl, Key_F1 }, [&](auto&) { + m_replace_action = GUI::Action::create("Rep&lace", { Mod_Ctrl, Key_F1 }, [&](auto&) { auto needle = m_find_textbox->text(); auto substitute = m_replace_textbox->text(); if (needle.is_empty()) @@ -511,7 +511,7 @@ void MainWidget::initialize_menubar(GUI::Menubar& menubar) view_menu.add_separator(); - m_visualize_trailing_whitespace_action = GUI::Action::create_checkable("Visualize &Trailing Whitespace", [&](auto&) { + m_visualize_trailing_whitespace_action = GUI::Action::create_checkable("&Visualize Trailing Whitespace", [&](auto&) { m_editor->set_visualize_trailing_whitespace(m_visualize_trailing_whitespace_action->is_checked()); }); m_visualize_leading_whitespace_action = GUI::Action::create_checkable("Visualize &Leading Whitespace", [&](auto&) { |