summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/mobile.c2
-rw-r--r--src/ui/root.c13
2 files changed, 12 insertions, 3 deletions
diff --git a/src/ui/mobile.c b/src/ui/mobile.c
index cf955423..e2bec579 100644
--- a/src/ui/mobile.c
+++ b/src/ui/mobile.c
@@ -940,7 +940,7 @@ void setupMenuTransition_Mobile(iWidget *sheet, iBool isIncoming) {
940 } 940 }
941 const int maxOffset = isHorizPanel ? width_Widget(sheet) 941 const int maxOffset = isHorizPanel ? width_Widget(sheet)
942 : isPortraitPhone_App() ? height_Widget(sheet) 942 : isPortraitPhone_App() ? height_Widget(sheet)
943 : (12 * gap_UI); 943 : (6 * gap_UI);
944 if (isIncoming) { 944 if (isIncoming) {
945 setVisualOffset_Widget(sheet, maxOffset, 0, 0); 945 setVisualOffset_Widget(sheet, maxOffset, 0, 0);
946 setVisualOffset_Widget(sheet, 0, 330, easeOut_AnimFlag | softer_AnimFlag); 946 setVisualOffset_Widget(sheet, 0, 330, easeOut_AnimFlag | softer_AnimFlag);
diff --git a/src/ui/root.c b/src/ui/root.c
index 0269b095..776a9a35 100644
--- a/src/ui/root.c
+++ b/src/ui/root.c
@@ -1312,8 +1312,7 @@ void createUserInterface_Root(iRoot *d) {
1312#if defined (iPlatformApple) 1312#if defined (iPlatformApple)
1313 addUnsplitButton_(navBar); 1313 addUnsplitButton_(navBar);
1314#endif 1314#endif
1315 iWidget *navBack; 1315 setId_Widget(addChildFlags_Widget(navBar, iClob(newIcon_LabelWidget(backArrow_Icon, 0, 0, "navigate.back")), collapse_WidgetFlag), "navbar.action1");
1316 setId_Widget(navBack = addChildFlags_Widget(navBar, iClob(newIcon_LabelWidget(backArrow_Icon, 0, 0, "navigate.back")), collapse_WidgetFlag), "navbar.action1");
1317 setId_Widget(addChildFlags_Widget(navBar, iClob(newIcon_LabelWidget(forwardArrow_Icon, 0, 0, "navigate.forward")), collapse_WidgetFlag), "navbar.action2"); 1316 setId_Widget(addChildFlags_Widget(navBar, iClob(newIcon_LabelWidget(forwardArrow_Icon, 0, 0, "navigate.forward")), collapse_WidgetFlag), "navbar.action2");
1318 /* Button for toggling the left sidebar. */ 1317 /* Button for toggling the left sidebar. */
1319 setId_Widget(addChildFlags_Widget( 1318 setId_Widget(addChildFlags_Widget(
@@ -1497,6 +1496,16 @@ void createUserInterface_Root(iRoot *d) {
1497 /* On PC platforms, the close buttons are generally on the top right. */ 1496 /* On PC platforms, the close buttons are generally on the top right. */
1498 addUnsplitButton_(navBar); 1497 addUnsplitButton_(navBar);
1499#endif 1498#endif
1499 if (deviceType_App() == tablet_AppDeviceType) {
1500 /* Ensure that all navbar buttons match the height of the input field.
1501 This is required because touch input fields are given extra padding,
1502 making them taller than buttons by default. */
1503 iForEach(ObjectList, i, children_Widget(navBar)) {
1504 if (isInstance_Object(i.object, &Class_LabelWidget)) {
1505 as_Widget(i.object)->sizeRef = as_Widget(url);
1506 }
1507 }
1508 }
1500 } 1509 }
1501 /* Tab bar. */ { 1510 /* Tab bar. */ {
1502 iWidget *mainStack = new_Widget(); 1511 iWidget *mainStack = new_Widget();