mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
Browser: Add status tips to most of the actions
This commit is contained in:
parent
679feec195
commit
f77100d66b
2 changed files with 18 additions and 4 deletions
|
@ -49,6 +49,7 @@ WindowActions::WindowActions(GUI::Window& window)
|
|||
on_create_new_tab();
|
||||
},
|
||||
&window);
|
||||
m_create_new_tab_action->set_status_tip("Open a new tab");
|
||||
|
||||
m_next_tab_action = GUI::Action::create(
|
||||
"&Next Tab", { Mod_Ctrl, Key_PageDown }, [this](auto&) {
|
||||
|
@ -56,6 +57,7 @@ WindowActions::WindowActions(GUI::Window& window)
|
|||
on_next_tab();
|
||||
},
|
||||
&window);
|
||||
m_next_tab_action->set_status_tip("Switch to the next tab");
|
||||
|
||||
m_previous_tab_action = GUI::Action::create(
|
||||
"&Previous Tab", { Mod_Ctrl, Key_PageUp }, [this](auto&) {
|
||||
|
@ -63,6 +65,7 @@ WindowActions::WindowActions(GUI::Window& window)
|
|||
on_previous_tab();
|
||||
},
|
||||
&window);
|
||||
m_previous_tab_action->set_status_tip("Switch to the previous tab");
|
||||
|
||||
m_about_action = GUI::Action::create(
|
||||
"&About Browser", GUI::Icon::default_icon("app-browser").bitmap_for_size(16), [this](const GUI::Action&) {
|
||||
|
@ -70,6 +73,7 @@ WindowActions::WindowActions(GUI::Window& window)
|
|||
on_about();
|
||||
},
|
||||
&window);
|
||||
m_about_action->set_status_tip("Show application about box");
|
||||
|
||||
m_show_bookmarks_bar_action = GUI::Action::create_checkable(
|
||||
"&Bookmarks Bar", { Mod_Ctrl, Key_B },
|
||||
|
@ -78,6 +82,7 @@ WindowActions::WindowActions(GUI::Window& window)
|
|||
on_show_bookmarks_bar(action);
|
||||
},
|
||||
&window);
|
||||
m_show_bookmarks_bar_action->set_status_tip("Show/hide the bookmarks bar");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue