diff options
Diffstat (limited to 'src/ui/mobile.c')
-rw-r--r-- | src/ui/mobile.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/ui/mobile.c b/src/ui/mobile.c index 90dfafde..947c0cbf 100644 --- a/src/ui/mobile.c +++ b/src/ui/mobile.c | |||
@@ -590,7 +590,8 @@ void makePanelItem_Mobile(iWidget *panel, const iMenuItem *item) { | |||
590 | setFlags_Widget(as_Widget(button), fixedWidth_WidgetFlag, iFalse); | 590 | setFlags_Widget(as_Widget(button), fixedWidth_WidgetFlag, iFalse); |
591 | } | 591 | } |
592 | setId_Widget(as_Widget(button), radId); | 592 | setId_Widget(as_Widget(button), radId); |
593 | setFont_LabelWidget(button, isHorizontal ? uiLabelMedium_FontId : uiLabelBig_FontId); | 593 | setFont_LabelWidget(button, deviceType_App() == phone_AppDeviceType ? |
594 | (isHorizontal ? uiLabelMedium_FontId : uiLabelBig_FontId) : labelFont_()); | ||
594 | setCheckMark_LabelWidget(button, !isHorizontal); | 595 | setCheckMark_LabelWidget(button, !isHorizontal); |
595 | setPadding_Widget(as_Widget(button), gap_UI, 1 * gap_UI, 0, 1 * gap_UI); | 596 | setPadding_Widget(as_Widget(button), gap_UI, 1 * gap_UI, 0, 1 * gap_UI); |
596 | updateSize_LabelWidget(button); | 597 | updateSize_LabelWidget(button); |
@@ -984,3 +985,13 @@ void setupSheetTransition_Mobile(iWidget *sheet, int flags) { | |||
984 | } | 985 | } |
985 | } | 986 | } |
986 | } | 987 | } |
988 | |||
989 | int bottomSafeInset_Mobile(void) { | ||
990 | #if defined (iPlatformAppleMobile) | ||
991 | float bot; | ||
992 | safeAreaInsets_iOS(NULL, NULL, NULL, &bot); | ||
993 | return iRound(bot); | ||
994 | #else | ||
995 | return 0; | ||
996 | #endif | ||
997 | } | ||