From adf6be45fbe6766adbf0db1b3d84ac9d639ce875 Mon Sep 17 00:00:00 2001 From: electrikmilk Date: Sun, 13 Feb 2022 13:10:50 -0500 Subject: Base+Calculator: Add icons Adds icons for Pi and Euler's Constant to the Constants menu. --- Userland/Applications/Calculator/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Applications') diff --git a/Userland/Applications/Calculator/main.cpp b/Userland/Applications/Calculator/main.cpp index 07335c8ed6..e1e326f8a2 100644 --- a/Userland/Applications/Calculator/main.cpp +++ b/Userland/Applications/Calculator/main.cpp @@ -57,10 +57,10 @@ ErrorOr serenity_main(Main::Arguments arguments) })); auto& constants_menu = window->add_menu("&Constants"); - constants_menu.add_action(GUI::Action::create("&Pi", [&](auto&) { + constants_menu.add_action(GUI::Action::create("&Pi", TRY(Gfx::Bitmap::try_load_from_file("/res/icons/calculator/pi.png")), [&](auto&) { widget->set_entry(KeypadValue { 31415926535, 10 }); })); - constants_menu.add_action(GUI::Action::create("&Euler's Constant", [&](auto&) { + constants_menu.add_action(GUI::Action::create("&Euler's Constant", TRY(Gfx::Bitmap::try_load_from_file("/res/icons/calculator/eulers.png")), [&](auto&) { widget->set_entry(KeypadValue { 27182818284, 10 }); })); -- cgit v1.2.3