summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Applications/Browser/Tab.cpp2
-rw-r--r--Applications/Browser/WindowActions.cpp3
-rw-r--r--Base/res/icons/16x16/close-tab.pngbin0 -> 199 bytes
-rw-r--r--Base/res/icons/16x16/new-tab.pngbin0 -> 224 bytes
4 files changed, 3 insertions, 2 deletions
diff --git a/Applications/Browser/Tab.cpp b/Applications/Browser/Tab.cpp
index 4deea4bdb2..4a7b464d29 100644
--- a/Applications/Browser/Tab.cpp
+++ b/Applications/Browser/Tab.cpp
@@ -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));
diff --git a/Applications/Browser/WindowActions.cpp b/Applications/Browser/WindowActions.cpp
index 99f0bc8654..501d0ddc65 100644
--- a/Applications/Browser/WindowActions.cpp
+++ b/Applications/Browser/WindowActions.cpp
@@ -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();
},
diff --git a/Base/res/icons/16x16/close-tab.png b/Base/res/icons/16x16/close-tab.png
new file mode 100644
index 0000000000..9b6a0ae085
--- /dev/null
+++ b/Base/res/icons/16x16/close-tab.png
Binary files differ
diff --git a/Base/res/icons/16x16/new-tab.png b/Base/res/icons/16x16/new-tab.png
new file mode 100644
index 0000000000..48f749ef68
--- /dev/null
+++ b/Base/res/icons/16x16/new-tab.png
Binary files differ