|
@@ -233,7 +233,7 @@ void BrowserWindow::build_menus()
|
|
|
auto& settings_menu = add_menu("&Settings");
|
|
|
|
|
|
m_change_homepage_action = GUI::Action::create(
|
|
|
- "Set Homepage URL...", [this](auto&) {
|
|
|
+ "Set Homepage URL...", g_icon_bag.go_home, [this](auto&) {
|
|
|
auto homepage_url = Config::read_string("Browser", "Preferences", "Home", "about:blank");
|
|
|
if (GUI::InputBox::show(this, homepage_url, "Enter URL", "Change homepage URL") == GUI::InputBox::ExecOK) {
|
|
|
if (URL(homepage_url).is_valid()) {
|
|
@@ -284,12 +284,12 @@ void BrowserWindow::build_menus()
|
|
|
},
|
|
|
this));
|
|
|
debug_menu.add_action(GUI::Action::create(
|
|
|
- "Dump &Layout Tree", [this](auto&) {
|
|
|
+ "Dump &Layout Tree", g_icon_bag.layout, [this](auto&) {
|
|
|
active_tab().m_web_content_view->debug_request("dump-layout-tree");
|
|
|
},
|
|
|
this));
|
|
|
debug_menu.add_action(GUI::Action::create(
|
|
|
- "Dump &Stacking Context Tree", [this](auto&) {
|
|
|
+ "Dump &Stacking Context Tree", g_icon_bag.layers, [this](auto&) {
|
|
|
active_tab().m_web_content_view->debug_request("dump-stacking-context-tree");
|
|
|
},
|
|
|
this));
|
|
@@ -298,7 +298,7 @@ void BrowserWindow::build_menus()
|
|
|
active_tab().m_web_content_view->debug_request("dump-style-sheets");
|
|
|
},
|
|
|
this));
|
|
|
- debug_menu.add_action(GUI::Action::create("Dump &History", { Mod_Ctrl, Key_H }, [this](auto&) {
|
|
|
+ debug_menu.add_action(GUI::Action::create("Dump &History", { Mod_Ctrl, Key_H }, g_icon_bag.history, [this](auto&) {
|
|
|
active_tab().m_history.dump();
|
|
|
}));
|
|
|
debug_menu.add_action(GUI::Action::create("Dump C&ookies", g_icon_bag.cookie, [this](auto&) {
|
|
@@ -316,10 +316,10 @@ void BrowserWindow::build_menus()
|
|
|
debug_menu.add_action(line_box_borders_action);
|
|
|
|
|
|
debug_menu.add_separator();
|
|
|
- debug_menu.add_action(GUI::Action::create("Collect &Garbage", { Mod_Ctrl | Mod_Shift, Key_G }, [this](auto&) {
|
|
|
+ debug_menu.add_action(GUI::Action::create("Collect &Garbage", { Mod_Ctrl | Mod_Shift, Key_G }, g_icon_bag.trash_can, [this](auto&) {
|
|
|
active_tab().m_web_content_view->debug_request("collect-garbage");
|
|
|
}));
|
|
|
- debug_menu.add_action(GUI::Action::create("Clear &Cache", { Mod_Ctrl | Mod_Shift, Key_C }, [this](auto&) {
|
|
|
+ debug_menu.add_action(GUI::Action::create("Clear &Cache", { Mod_Ctrl | Mod_Shift, Key_C }, g_icon_bag.clear_cache, [this](auto&) {
|
|
|
active_tab().m_web_content_view->debug_request("clear-cache");
|
|
|
}));
|
|
|
|
|
@@ -330,6 +330,7 @@ void BrowserWindow::build_menus()
|
|
|
});
|
|
|
m_disable_user_agent_spoofing->set_status_tip(Web::default_user_agent);
|
|
|
spoof_user_agent_menu.add_action(*m_disable_user_agent_spoofing);
|
|
|
+ spoof_user_agent_menu.set_icon(g_icon_bag.spoof);
|
|
|
m_user_agent_spoof_actions.add_action(*m_disable_user_agent_spoofing);
|
|
|
m_disable_user_agent_spoofing->set_checked(true);
|
|
|
|