From f529e9d67a8b5c6e47895ea30d0e00eb28768233 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 17 Sep 2021 19:45:33 +0300 Subject: Mobile: About page --- src/defs.h | 1 + src/gmdocument.c | 2 +- src/ui/util.c | 6 ++++-- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/defs.h b/src/defs.h index edaaecde..3cb7dd2c 100644 --- a/src/defs.h +++ b/src/defs.h @@ -149,6 +149,7 @@ iLocalDef int acceptKeyMod_ReturnKeyBehavior(int behavior) { #define clipboard_Icon "\U0001f4cb" #define unhappy_Icon "\U0001f641" #define globe_Icon "\U0001f310" +#define envelope_Icon "\U0001f4e7" #define magnifyingGlass_Icon "\U0001f50d" #define midEllipsis_Icon "\u00b7\u00b7\u00b7" #define return_Icon "\u23ce" diff --git a/src/gmdocument.c b/src/gmdocument.c index 4e92c89c..97c7b41b 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c @@ -500,7 +500,7 @@ static void doLayout_GmDocument_(iGmDocument *d) { 0.0f, 0.25f, 1.0f, 0.5f, 1.5f, 0.5f, 0.5f, 0.25f }; static const char *arrow = rightArrowhead_Icon; - static const char *envelope = "\U0001f4e7"; + static const char *envelope = envelope_Icon; static const char *bullet = "\u2022"; static const char *folder = "\U0001f4c1"; static const char *globe = globe_Icon; diff --git a/src/ui/util.c b/src/ui/util.c index 5420e5d2..5361250f 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -1948,13 +1948,15 @@ iWidget *makePreferences_Widget(void) { iString *aboutText = collectNew_String(); { setCStr_String(aboutText, "Lagrange " LAGRANGE_APP_VERSION); #if defined (iPlatformAppleMobile) - appendCStr_String(aboutText, " (" LAGRANGE_IOS_VERSION ") \u2014 " LAGRANGE_IOS_BUILD_DATE); + appendFormat_String(aboutText, " (" LAGRANGE_IOS_VERSION ") %s" LAGRANGE_IOS_BUILD_DATE, + escape_Color(uiTextDim_ColorId)); #endif } const iMenuItem aboutPanelItems[] = { { format_CStr("heading text:%s", cstr_String(aboutText)) }, - { "button text:" globe_Icon " By @jk@skyjake.fi", 0, 0, "!open url:https://skyjake.fi/@jk" }, { "button text:" clock_Icon " ${menu.releasenotes}", 0, 0, "!open url:about:version" }, + { "button text:" globe_Icon " ${menu.website}", 0, 0, "!open url:https://gmi.skyjake.fi/lagrange" }, + { "button text:" envelope_Icon " @jk@skyjake.fi", 0, 0, "!open url:https://skyjake.fi/@jk" }, { "padding" }, { "button text:" info_Icon " ${menu.aboutpages}", 0, 0, "!open url:about:about" }, { "button text:" bug_Icon " ${menu.debug}", 0, 0, "!open url:about:debug" }, -- cgit v1.2.3