From dff12096f941092558b2c2c7c65ae3f83c75eb13 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 20 Mar 2021 22:08:03 +0200 Subject: Mobile: Balance navbar buttons Moved Identity button to the right since on the left there is the new Sidebar button. --- src/ui/window.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/window.c b/src/ui/window.c index 689037f9..1249a0b4 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1031,6 +1031,11 @@ static void setupUserInterface_Window(iWindow *d) { updateSize_LabelWidget(reload); setId_Widget(addChild_Widget(rightEmbed, iClob(makePadding_Widget(0))), "url.embedpad"); } + if (deviceType_App() != desktop_AppDeviceType) { + /* On mobile, the Identities button is on the right side of the URL bar. */ + iWidget *ident = removeChild_Widget(navBar, findChild_Widget(navBar, "navbar.ident")); + addChild_Widget(navBar, iClob(ident)); + } addChildFlags_Widget(navBar, iClob(new_Widget()), expand_WidgetFlag); setId_Widget(addChildFlags_Widget(navBar, iClob(newIcon_LabelWidget( -- cgit v1.2.3