diff --git a/Base/res/icons/calculator/eulers.png b/Base/res/icons/calculator/eulers.png new file mode 100644 index 0000000000..c6fdb1cec4 Binary files /dev/null and b/Base/res/icons/calculator/eulers.png differ diff --git a/Base/res/icons/calculator/pi.png b/Base/res/icons/calculator/pi.png new file mode 100644 index 0000000000..ea62ade091 Binary files /dev/null and b/Base/res/icons/calculator/pi.png differ 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 }); }));