summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-27 13:45:36 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-27 13:45:36 +0200
commit666033098e74e044beb6d8b9e032e79b62d48c57 (patch)
tree31299e7920b8703035e0160d9d2f73025e2b288e /src
parent337ab6b40fe072bed91582a43e64aedda5c4ad40 (diff)
Android: Replace toolbar Back button with Close Tab
These should be user-configurable, though.
Diffstat (limited to 'src')
-rw-r--r--src/ui/root.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/root.c b/src/ui/root.c
index 36ac948e..3e0124d8 100644
--- a/src/ui/root.c
+++ b/src/ui/root.c
@@ -1542,10 +1542,19 @@ void createUserInterface_Root(iRoot *d) {
1542 arrangeHeight_WidgetFlag | arrangeHorizontal_WidgetFlag | 1542 arrangeHeight_WidgetFlag | arrangeHorizontal_WidgetFlag |
1543 commandOnClick_WidgetFlag | 1543 commandOnClick_WidgetFlag |
1544 drawBackgroundToBottom_WidgetFlag, iTrue); 1544 drawBackgroundToBottom_WidgetFlag, iTrue);
1545#if defined (iPlatformAndroidMobile)
1546 /* Android has a system-provided back button (or gesture?), or in the toolbar we can have
1547 a different in the place of Back. */
1548 setId_Widget(addChildFlags_Widget(toolBar,
1549 iClob(newLargeIcon_LabelWidget(close_Icon, "tabs.close")),
1550 frameless_WidgetFlag),
1551 "toolbar.close");
1552#else
1545 setId_Widget(addChildFlags_Widget(toolBar, 1553 setId_Widget(addChildFlags_Widget(toolBar,
1546 iClob(newLargeIcon_LabelWidget(backArrow_Icon, "navigate.back")), 1554 iClob(newLargeIcon_LabelWidget(backArrow_Icon, "navigate.back")),
1547 frameless_WidgetFlag), 1555 frameless_WidgetFlag),
1548 "toolbar.back"); 1556 "toolbar.back");
1557#endif
1549 setId_Widget(addChildFlags_Widget(toolBar, 1558 setId_Widget(addChildFlags_Widget(toolBar,
1550 iClob(newLargeIcon_LabelWidget(forwardArrow_Icon, "navigate.forward")), 1559 iClob(newLargeIcon_LabelWidget(forwardArrow_Icon, "navigate.forward")),
1551 frameless_WidgetFlag), 1560 frameless_WidgetFlag),