mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +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
|
@ -1,5 +1,6 @@
|
|||
#include "WindowActions.h"
|
||||
#include <LibGUI/Window.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
|
||||
namespace Browser {
|
||||
|
||||
|
@ -16,7 +17,7 @@ WindowActions::WindowActions(GUI::Window& window)
|
|||
ASSERT(!s_the);
|
||||
s_the = this;
|
||||
m_create_new_tab_action = GUI::Action::create(
|
||||
"New tab", { Mod_Ctrl, Key_T }, [this](auto&) {
|
||||
"New tab", { Mod_Ctrl, Key_T }, Gfx::Bitmap::load_from_file("/res/icons/16x16/new-tab.png"), [this](auto&) {
|
||||
if (on_create_new_tab)
|
||||
on_create_new_tab();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue