diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/documentwidget.c | 9 | ||||
-rw-r--r-- | src/ui/sidebarwidget.c | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index c24fcf27..3dadb911 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -2201,7 +2201,7 @@ static void checkResponse_DocumentWidget_(iDocumentWidget *d) { | |||
2201 | } | 2201 | } |
2202 | iWidget *counter = (iWidget *) new_LabelWidget("", NULL); | 2202 | iWidget *counter = (iWidget *) new_LabelWidget("", NULL); |
2203 | setId_Widget(counter, "valueinput.counter"); | 2203 | setId_Widget(counter, "valueinput.counter"); |
2204 | setFlags_Widget(counter, frameless_WidgetFlag, iTrue); | 2204 | setFlags_Widget(counter, frameless_WidgetFlag | resizeToParentHeight_WidgetFlag, iTrue); |
2205 | if (deviceType_App() == desktop_AppDeviceType) { | 2205 | if (deviceType_App() == desktop_AppDeviceType) { |
2206 | addChildPos_Widget(buttons, iClob(counter), front_WidgetAddPos); | 2206 | addChildPos_Widget(buttons, iClob(counter), front_WidgetAddPos); |
2207 | } | 2207 | } |
@@ -3215,17 +3215,16 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd) | |||
3215 | } | 3215 | } |
3216 | return wasHandled; | 3216 | return wasHandled; |
3217 | } | 3217 | } |
3218 | else if (equal_Command(cmd, "document.upload") && d == document_App()) { | 3218 | else if (equal_Command(cmd, "document.upload") && d == document_App()) { |
3219 | if (findChild_Widget(root_Widget(w), "upload")) { | 3219 | if (findChild_Widget(root_Widget(w), "upload")) { |
3220 | return iTrue; /* already open */ | 3220 | return iTrue; /* already open */ |
3221 | } | 3221 | } |
3222 | if (equalCase_Rangecc(urlScheme_String(d->mod.url), "gemini") || | 3222 | const iBool isGemini = equalCase_Rangecc(urlScheme_String(d->mod.url), "gemini"); |
3223 | equalCase_Rangecc(urlScheme_String(d->mod.url), "titan")) { | 3223 | if (isGemini || equalCase_Rangecc(urlScheme_String(d->mod.url), "titan")) { |
3224 | iUploadWidget *upload = new_UploadWidget(); | 3224 | iUploadWidget *upload = new_UploadWidget(); |
3225 | setUrl_UploadWidget(upload, d->mod.url); | 3225 | setUrl_UploadWidget(upload, d->mod.url); |
3226 | setResponseViewer_UploadWidget(upload, d); | 3226 | setResponseViewer_UploadWidget(upload, d); |
3227 | addChild_Widget(get_Root()->widget, iClob(upload)); | 3227 | addChild_Widget(get_Root()->widget, iClob(upload)); |
3228 | // finalizeSheet_Mobile(as_Widget(upload)); | ||
3229 | setupSheetTransition_Mobile(as_Widget(upload), iTrue); | 3228 | setupSheetTransition_Mobile(as_Widget(upload), iTrue); |
3230 | postRefresh_App(); | 3229 | postRefresh_App(); |
3231 | } | 3230 | } |
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index c5596b9f..15274987 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -212,7 +212,7 @@ static enum iFontId actionButtonFont_SidebarWidget_(const iSidebarWidget *d) { | |||
212 | default: | 212 | default: |
213 | break; | 213 | break; |
214 | case phone_AppDeviceType: | 214 | case phone_AppDeviceType: |
215 | return uiLabelBig_FontId; | 215 | return isPortrait_App() ? uiLabelBig_FontId : uiLabelMedium_FontId; |
216 | case tablet_AppDeviceType: | 216 | case tablet_AppDeviceType: |
217 | return uiLabelMedium_FontId; | 217 | return uiLabelMedium_FontId; |
218 | } | 218 | } |