mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03:00
TextEditor: Remove wordiness and a separator in View menu
In many cases we can lean on the name of a menu to reduce verbosity. "View"->"Visualize/Show/Turn on/etc" is a bit redundant and clutters the menu. It's a little thing, but it makes the system feel more tightly integrated if we stick to the same word patterns across apps.
This commit is contained in:
parent
9a5a9fbee0
commit
4e40eaf34c
Notes:
sideshowbarker
2024-07-18 04:15:12 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/4e40eaf34c5 Pull-request: https://github.com/SerenityOS/serenity/pull/9968
@ -478,8 +478,6 @@ void MainWidget::initialize_menubar(GUI::Window& window)
|
||||
|
||||
m_no_wrapping_action->set_checked(true);
|
||||
|
||||
view_menu.add_separator();
|
||||
|
||||
m_soft_tab_width_actions.set_exclusive(true);
|
||||
auto& soft_tab_width_menu = view_menu.add_submenu("&Tab Width");
|
||||
m_soft_tab_1_width_action = GUI::Action::create_checkable("1", [&](auto&) {
|
||||
@ -514,14 +512,16 @@ void MainWidget::initialize_menubar(GUI::Window& window)
|
||||
|
||||
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("T&railing 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&) {
|
||||
m_visualize_leading_whitespace_action = GUI::Action::create_checkable("L&eading Whitespace", [&](auto&) {
|
||||
m_editor->set_visualize_leading_whitespace(m_visualize_leading_whitespace_action->is_checked());
|
||||
});
|
||||
|
||||
m_visualize_trailing_whitespace_action->set_checked(true);
|
||||
m_visualize_trailing_whitespace_action->set_status_tip("Visualize trailing whitespace");
|
||||
m_visualize_leading_whitespace_action->set_status_tip("Visualize leading whitespace");
|
||||
|
||||
view_menu.add_action(*m_visualize_trailing_whitespace_action);
|
||||
view_menu.add_action(*m_visualize_leading_whitespace_action);
|
||||
|
Loading…
Reference in New Issue
Block a user