diff options
author | electrikmilk <brandonjordan124@gmail.com> | 2022-02-13 13:10:50 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-13 22:09:18 +0100 |
commit | adf6be45fbe6766adbf0db1b3d84ac9d639ce875 (patch) | |
tree | 284235ed3535955867bc162c1684d7e24bba3a1a /Userland/Applications | |
parent | 9e81f60a2f7b3b07e3df0da5a37d5d8d9b1d0a31 (diff) | |
download | serenity-adf6be45fbe6766adbf0db1b3d84ac9d639ce875.zip |
Base+Calculator: Add icons
Adds icons for Pi and Euler's Constant to the Constants menu.
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/Calculator/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<int> 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 }); })); |