summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorelectrikmilk <brandonjordan124@gmail.com>2022-01-11 21:50:45 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-12 10:55:20 +0100
commit34c5d33eb0842bbff858cb1657fd028df0824f43 (patch)
tree6a343c1b1f5f29b09d6ef55e2ac234976721b4d2 /Userland/Applications
parent64ae8eac0e0d0476900e7ef4de3d15c78ce3152a (diff)
downloadserenity-34c5d33eb0842bbff858cb1657fd028df0824f43.zip
Base+Userland: Add various icons
Add new icons to menus, add existing icons that could be used in menus.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/Browser/BrowserWindow.cpp6
-rw-r--r--Userland/Applications/FileManager/main.cpp2
-rw-r--r--Userland/Applications/ImageViewer/main.cpp6
3 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Applications/Browser/BrowserWindow.cpp b/Userland/Applications/Browser/BrowserWindow.cpp
index 366d817a48..32e95e7127 100644
--- a/Userland/Applications/Browser/BrowserWindow.cpp
+++ b/Userland/Applications/Browser/BrowserWindow.cpp
@@ -197,7 +197,7 @@ void BrowserWindow::build_menus()
});
m_view_source_action = GUI::Action::create(
- "View &Source", { Mod_Ctrl, Key_U }, [this](auto&) {
+ "View &Source", { Mod_Ctrl, Key_U }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/code.png").release_value_but_fixme_should_propagate_errors(), [this](auto&) {
active_tab().m_web_content_view->get_source();
},
this);
@@ -211,7 +211,7 @@ void BrowserWindow::build_menus()
m_inspect_dom_tree_action->set_status_tip("Open inspector window for this page");
m_inspect_dom_node_action = GUI::Action::create(
- "&Inspect Element", [this](auto&) {
+ "&Inspect Element", Gfx::Bitmap::try_load_from_file("/res/icons/16x16/inspect.png").release_value_but_fixme_should_propagate_errors(), [this](auto&) {
active_tab().show_inspector_window(Tab::InspectorTarget::HoveredElement);
},
this);
@@ -222,7 +222,7 @@ void BrowserWindow::build_menus()
inspect_menu.add_action(*m_inspect_dom_tree_action);
auto js_console_action = GUI::Action::create(
- "Open &JS Console", { Mod_Ctrl, Key_I }, [this](auto&) {
+ "Open &JS Console", { Mod_Ctrl, Key_I }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/filetype-javascript.png").release_value_but_fixme_should_propagate_errors(), [this](auto&) {
active_tab().show_console_window();
},
this);
diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp
index 76767218c4..41f6ee5fbe 100644
--- a/Userland/Applications/FileManager/main.cpp
+++ b/Userland/Applications/FileManager/main.cpp
@@ -970,7 +970,7 @@ ErrorOr<int> run_in_windowed_mode(String const& initial_location, String const&
TRY(view_menu->try_add_separator());
TRY(view_menu->try_add_action(action_show_dotfiles));
- auto go_to_location_action = GUI::Action::create("Go to &Location...", { Mod_Ctrl, Key_L }, [&](auto&) {
+ auto go_to_location_action = GUI::Action::create("Go to &Location...", { Mod_Ctrl, Key_L }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/go-to.png").release_value_but_fixme_should_propagate_errors(), [&](auto&) {
toolbar_container.set_visible(true);
location_toolbar.set_visible(true);
breadcrumb_toolbar.set_visible(false);
diff --git a/Userland/Applications/ImageViewer/main.cpp b/Userland/Applications/ImageViewer/main.cpp
index f1c44cbb8b..125035befb 100644
--- a/Userland/Applications/ImageViewer/main.cpp
+++ b/Userland/Applications/ImageViewer/main.cpp
@@ -157,17 +157,17 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
widget->rotate(Gfx::RotationDirection::Clockwise);
});
- auto vertical_flip_action = GUI::Action::create("Flip &Vertically", { Mod_None, Key_V },
+ auto vertical_flip_action = GUI::Action::create("Flip &Vertically", { Mod_None, Key_V }, TRY(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/edit-flip-vertical.png")),
[&](auto&) {
widget->flip(Gfx::Orientation::Vertical);
});
- auto horizontal_flip_action = GUI::Action::create("Flip &Horizontally", { Mod_None, Key_H },
+ auto horizontal_flip_action = GUI::Action::create("Flip &Horizontally", { Mod_None, Key_H }, TRY(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/edit-flip-horizontal.png")),
[&](auto&) {
widget->flip(Gfx::Orientation::Horizontal);
});
- auto desktop_wallpaper_action = GUI::Action::create("Set as Desktop &Wallpaper",
+ auto desktop_wallpaper_action = GUI::Action::create("Set as Desktop &Wallpaper", TRY(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/app-display-settings.png")),
[&](auto&) {
auto could_set_wallpaper = GUI::Desktop::the().set_wallpaper(widget->path());
if (!could_set_wallpaper) {