mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 18:17:34 +00:00
Base+Browser: Add Browser icons
Add some missing icons to the brower.
This commit is contained in:
parent
0d8120eeb2
commit
10e473bf26
10 changed files with 6 additions and 5 deletions
|
@ -204,7 +204,7 @@ void BrowserWindow::build_menus()
|
|||
m_view_source_action->set_status_tip("View source code of the current page");
|
||||
|
||||
m_inspect_dom_tree_action = GUI::Action::create(
|
||||
"Inspect &DOM Tree", { Mod_None, Key_F12 }, [this](auto&) {
|
||||
"Inspect &DOM Tree", { Mod_None, Key_F12 }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/tree.png").release_value_but_fixme_should_propagate_errors(), [this](auto&) {
|
||||
active_tab().show_inspector_window(Tab::InspectorTarget::Document);
|
||||
},
|
||||
this);
|
||||
|
@ -343,7 +343,7 @@ void BrowserWindow::build_menus()
|
|||
|
||||
auto& debug_menu = add_menu("&Debug");
|
||||
debug_menu.add_action(GUI::Action::create(
|
||||
"Dump &DOM Tree", [this](auto&) {
|
||||
"Dump &DOM Tree", Gfx::Bitmap::try_load_from_file("/res/icons/16x16/tree.png").release_value_but_fixme_should_propagate_errors(), [this](auto&) {
|
||||
active_tab().m_web_content_view->debug_request("dump-dom-tree");
|
||||
},
|
||||
this));
|
||||
|
@ -360,7 +360,7 @@ void BrowserWindow::build_menus()
|
|||
debug_menu.add_action(GUI::Action::create("Dump &History", { Mod_Ctrl, Key_H }, [this](auto&) {
|
||||
active_tab().m_history.dump();
|
||||
}));
|
||||
debug_menu.add_action(GUI::Action::create("Dump C&ookies", [this](auto&) {
|
||||
debug_menu.add_action(GUI::Action::create("Dump C&ookies", Gfx::Bitmap::try_load_from_file("/res/icons/16x16/cookie.png").release_value_but_fixme_should_propagate_errors(), [this](auto&) {
|
||||
auto& tab = active_tab();
|
||||
if (tab.on_dump_cookies)
|
||||
tab.on_dump_cookies();
|
||||
|
|
|
@ -332,7 +332,7 @@ Tab::Tab(BrowserWindow& window)
|
|||
m_tab_context_menu->add_action(GUI::CommonActions::make_close_tab_action([this](auto&) {
|
||||
on_tab_close_request(*this);
|
||||
}));
|
||||
m_tab_context_menu->add_action(GUI::Action::create("&Duplicate Tab", [this](auto&) {
|
||||
m_tab_context_menu->add_action(GUI::Action::create("&Duplicate Tab", Gfx::Bitmap::try_load_from_file("/res/icons/16x16/duplicate-tab.png").release_value_but_fixme_should_propagate_errors(), [this](auto&) {
|
||||
on_tab_open_request(url());
|
||||
}));
|
||||
m_tab_context_menu->add_action(GUI::Action::create("Close &Other Tabs", [this](auto&) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue