From 76259953925d42568c9ac80d6bb7732f1a9475be Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 10 Dec 2021 06:40:21 +0200 Subject: Mobile: UploadWidget styling --- po/en.po | 8 ++++++++ src/ui/mobile.c | 3 +++ src/ui/uploadwidget.c | 6 ++++-- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/po/en.po b/po/en.po index 43857d12..33c86382 100644 --- a/po/en.po +++ b/po/en.po @@ -1047,6 +1047,14 @@ msgstr "MIME type:" msgid "upload.token" msgstr "Token:" +# Mobile subheading in the Upload dialog. +msgid "upload.url" +msgstr "URL" + +# Mobile subheading: buttons for entering uploaded data. +msgid "upload.content" +msgstr "Content" + msgid "hint.upload.path" msgstr "URL path" diff --git a/src/ui/mobile.c b/src/ui/mobile.c index 5a787e7b..64a5a7cc 100644 --- a/src/ui/mobile.c +++ b/src/ui/mobile.c @@ -653,6 +653,9 @@ void makePanelItem_Mobile(iWidget *panel, const iMenuItem *item) { fixedHeight_WidgetFlag | (!argLabel_Command(spec, "frame") ? frameless_WidgetFlag : 0), iTrue); + if (argLabel_Command(spec, "font")) { + setFont_LabelWidget(lab, argLabel_Command(spec, "font")); + } } else if (equal_Command(spec, "padding")) { float height = 1.5f; diff --git a/src/ui/uploadwidget.c b/src/ui/uploadwidget.c index fc5cc190..28a35668 100644 --- a/src/ui/uploadwidget.c +++ b/src/ui/uploadwidget.c @@ -192,12 +192,14 @@ void init_UploadWidget(iUploadWidget *d) { }; initPanels_Mobile(w, NULL, (iMenuItem[]){ { "title id:heading.upload" }, - { "label id:upload.info" }, + { "heading id:upload.url" }, + { format_CStr("label id:upload.info font:%d", + deviceType_App() == phone_AppDeviceType ? uiLabelBig_FontId : uiLabelMedium_FontId) }, { "input id:upload.path hint:hint.upload.path noheading:1 url:1 text:" }, { "heading text:${heading.upload.id}" }, { "dropdown id:upload.id icon:0x1f464 text:", 0, 0, constData_Array(makeIdentityItems_UploadWidget_(d)) }, { "input id:upload.token hint:hint.upload.token.long icon:0x1f516 text:" }, - { "padding" }, + { "heading id:upload.content" }, { "panel id:dlg.upload.text icon:0x1f5b9 noscroll:1", 0, 0, (const void *) textItems }, { "panel id:dlg.upload.file icon:0x1f4c1", 0, 0, (const void *) fileItems }, { NULL } -- cgit v1.2.3