mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
Browser: Add icons for the "new tab" and "close tab" actions
This commit is contained in:
parent
2b64cf3efe
commit
9d8620f956
4 changed files with 3 additions and 2 deletions
|
@ -183,7 +183,7 @@ Tab::Tab()
|
|||
|
||||
auto& app_menu = m_menubar->add_menu("Browser");
|
||||
app_menu.add_action(WindowActions::the().create_new_tab_action());
|
||||
app_menu.add_action(GUI::Action::create("Close tab", { Mod_Ctrl, Key_W }, [this](auto&) {
|
||||
app_menu.add_action(GUI::Action::create("Close tab", { Mod_Ctrl, Key_W }, Gfx::Bitmap::load_from_file("/res/icons/16x16/close-tab.png"), [this](auto&) {
|
||||
on_tab_close_request(*this);
|
||||
}, this));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue