summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-10 06:40:21 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-10 06:40:21 +0200
commit76259953925d42568c9ac80d6bb7732f1a9475be (patch)
tree33f7dd08232714990d1df0803791e93c9c68a24b /src
parent343e12429ec6b7e41edcaf9c9b05f2bb9ccb4e7d (diff)
Mobile: UploadWidget styling
Diffstat (limited to 'src')
-rw-r--r--src/ui/mobile.c3
-rw-r--r--src/ui/uploadwidget.c6
2 files changed, 7 insertions, 2 deletions
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) {
653 fixedHeight_WidgetFlag | 653 fixedHeight_WidgetFlag |
654 (!argLabel_Command(spec, "frame") ? frameless_WidgetFlag : 0), 654 (!argLabel_Command(spec, "frame") ? frameless_WidgetFlag : 0),
655 iTrue); 655 iTrue);
656 if (argLabel_Command(spec, "font")) {
657 setFont_LabelWidget(lab, argLabel_Command(spec, "font"));
658 }
656 } 659 }
657 else if (equal_Command(spec, "padding")) { 660 else if (equal_Command(spec, "padding")) {
658 float height = 1.5f; 661 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) {
192 }; 192 };
193 initPanels_Mobile(w, NULL, (iMenuItem[]){ 193 initPanels_Mobile(w, NULL, (iMenuItem[]){
194 { "title id:heading.upload" }, 194 { "title id:heading.upload" },
195 { "label id:upload.info" }, 195 { "heading id:upload.url" },
196 { format_CStr("label id:upload.info font:%d",
197 deviceType_App() == phone_AppDeviceType ? uiLabelBig_FontId : uiLabelMedium_FontId) },
196 { "input id:upload.path hint:hint.upload.path noheading:1 url:1 text:" }, 198 { "input id:upload.path hint:hint.upload.path noheading:1 url:1 text:" },
197 { "heading text:${heading.upload.id}" }, 199 { "heading text:${heading.upload.id}" },
198 { "dropdown id:upload.id icon:0x1f464 text:", 0, 0, constData_Array(makeIdentityItems_UploadWidget_(d)) }, 200 { "dropdown id:upload.id icon:0x1f464 text:", 0, 0, constData_Array(makeIdentityItems_UploadWidget_(d)) },
199 { "input id:upload.token hint:hint.upload.token.long icon:0x1f516 text:" }, 201 { "input id:upload.token hint:hint.upload.token.long icon:0x1f516 text:" },
200 { "padding" }, 202 { "heading id:upload.content" },
201 { "panel id:dlg.upload.text icon:0x1f5b9 noscroll:1", 0, 0, (const void *) textItems }, 203 { "panel id:dlg.upload.text icon:0x1f5b9 noscroll:1", 0, 0, (const void *) textItems },
202 { "panel id:dlg.upload.file icon:0x1f4c1", 0, 0, (const void *) fileItems }, 204 { "panel id:dlg.upload.file icon:0x1f4c1", 0, 0, (const void *) fileItems },
203 { NULL } 205 { NULL }