1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:57:35 +00:00

Base+Calculator: Add icons

Adds icons for Pi and Euler's Constant to the Constants menu.
This commit is contained in:
electrikmilk 2022-02-13 13:10:50 -05:00 committed by Andreas Kling
parent 9e81f60a2f
commit adf6be45fb
3 changed files with 2 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

View file

@ -57,10 +57,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
})); }));
auto& constants_menu = window->add_menu("&Constants"); 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 }); 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 }); widget->set_entry(KeypadValue { 27182818284, 10 });
})); }));