1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:47:34 +00:00

Browser: Allow usage of vertical tabs

Add implementation of vertical tabs into the browser,
with the new `Ctrl + ,` shortcut, or within the View Options
This commit is contained in:
Cameron Youell 2022-05-13 18:42:44 +10:00 committed by Andreas Kling
parent 5b82bd719e
commit df7fd39fcc
3 changed files with 22 additions and 0 deletions

View file

@ -81,6 +81,15 @@ WindowActions::WindowActions(GUI::Window& window)
},
&window);
m_show_bookmarks_bar_action->set_status_tip("Show/hide the bookmarks bar");
m_vertical_tabs_action = GUI::Action::create_checkable(
"&Vertical Tabs", { Mod_Ctrl, Key_Comma },
[this](auto& action) {
if (on_vertical_tabs)
on_vertical_tabs(action);
},
&window);
m_vertical_tabs_action->set_status_tip("Enable/Disable vertical tabs");
}
}