summaryrefslogtreecommitdiff
path: root/Userland/Applications/ImageViewer
diff options
context:
space:
mode:
authorBrandon Jordan <brandonjordan124@gmail.com>2023-01-01 18:29:50 -0500
committerTim Flynn <trflynn89@pm.me>2023-01-02 09:56:05 -0500
commit4321a7def1f0231de70deb1ed9fe3ef8d9340d45 (patch)
tree9bb005d066bd5d092e7285f42aced33d8e2daa32 /Userland/Applications/ImageViewer
parent50c0d0a3b0e4734b611e1db862c70891da242b08 (diff)
downloadserenity-4321a7def1f0231de70deb1ed9fe3ef8d9340d45.zip
Base+Userland: Add menu item icons
Base+Userland: Add menu item icons This adds missing icons to Presenter Presentation menu. This adds missing icon to Image Viewer View menu. This adds a scale icon for the Image Viewer and Font Editor. This moves the Fit Image to View icon to the 16x16 folder as it's now used by Image Viewer and not only Pixel Paint. This improves the fullscreen and play icons so that they fit together better.
Diffstat (limited to 'Userland/Applications/ImageViewer')
-rw-r--r--Userland/Applications/ImageViewer/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Applications/ImageViewer/main.cpp b/Userland/Applications/ImageViewer/main.cpp
index ffa3e6493e..e0feaa703f 100644
--- a/Userland/Applications/ImageViewer/main.cpp
+++ b/Userland/Applications/ImageViewer/main.cpp
@@ -215,7 +215,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window);
auto fit_image_to_view_action = GUI::Action::create(
- "Fit Image To &View", [&](auto&) {
+ "Fit Image To &View", TRY(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/fit-image-to-view.png"sv)), [&](auto&) {
widget->fit_content_to_view();
});
@@ -314,6 +314,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(view_menu->try_add_separator());
auto scaling_mode_menu = TRY(view_menu->try_add_submenu("&Scaling Mode"));
+ scaling_mode_menu->set_icon(TRY(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/scale.png"sv)));
auto scaling_mode_group = make<GUI::ActionGroup>();
scaling_mode_group->set_exclusive(true);