From 8c37e508f2ea13fd3246ee39beac1ecb486f000d Mon Sep 17 00:00:00 2001 From: Andrew Dykema Date: Thu, 9 Jun 2022 10:12:56 -0700 Subject: [PATCH] Calculator: Add Phi constant --- Base/res/icons/calculator/phi.png | Bin 0 -> 363 bytes Userland/Applications/Calculator/main.cpp | 3 +++ 2 files changed, 3 insertions(+) create mode 100644 Base/res/icons/calculator/phi.png diff --git a/Base/res/icons/calculator/phi.png b/Base/res/icons/calculator/phi.png new file mode 100644 index 0000000000000000000000000000000000000000..a443063bf506635a40772ad0d35055860fc4852c GIT binary patch literal 363 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4rT@h1`S>QU8iYGD!gf`yy+^u>8gBfdVFpAeC>LC?fU#}di-tr{Ox-D?fPfcH~(c|VBjbT@&h>l zWE;cw=Rpe@7#Nm%x;TbNNU|Q}ZfaKGaX2_#Afo$G{mO*kECh@$~J| z=f!NUR^oWz_5NwrZL@P7j0}tpfp6GPMRB}3^feFUU serenity_main(Main::Arguments arguments) 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 }); })); + constants_menu.add_action(GUI::Action::create("&Phi", TRY(Gfx::Bitmap::try_load_from_file("/res/icons/calculator/phi.png")), [&](auto&) { + widget->set_entry(KeypadValue { 16180339887, 10 }); + })); auto& help_menu = window->add_menu("&Help"); help_menu.add_action(GUI::CommonActions::make_about_action("Calculator", app_icon, window));