From d1756d31fb7c223a6428e79bd16e059100139626 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 24 Feb 2021 19:27:19 +0200 Subject: Window: Adjusted lock spacing --- src/ui/window.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ui') diff --git a/src/ui/window.c b/src/ui/window.c index 80716e0c..bc19fd09 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -512,8 +512,7 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) { } /* Note that InputWidget uses the `tight` flag to adjust its inner padding. */ setContentPadding_InputWidget(findChild_Widget(navBar, "url"), - width_Widget(findChild_Widget(navBar, "navbar.lock")) - - 1.5 * gap_UI, + width_Widget(findChild_Widget(navBar, "navbar.lock")) * 0.75, -1); } if (isPhone) { @@ -889,7 +888,7 @@ static void setupUserInterface_Window(iWindow *d) { setId_Widget(as_Widget(lock), "navbar.lock"); setFont_LabelWidget(lock, defaultSymbols_FontId); updateTextCStr_LabelWidget(lock, "\U0001f512"); - setContentPadding_InputWidget(url, width_Widget(lock) - 1.5 * gap_UI, -1); + setContentPadding_InputWidget(url, width_Widget(lock) * 0.75, -1); } /* Feeds refresh indicator is inside the input field. */ { iLabelWidget *fprog = new_LabelWidget(uiTextCaution_ColorEscape -- cgit v1.2.3