diff options
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index fbcf42fe..5e64cf9e 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -367,12 +367,24 @@ static void setupUserInterface_Window(iWindow *d) { | |||
367 | setId_Widget(as_Widget(lock), "navbar.lock"); | 367 | setId_Widget(as_Widget(lock), "navbar.lock"); |
368 | setFont_LabelWidget(lock, defaultSymbols_FontId); | 368 | setFont_LabelWidget(lock, defaultSymbols_FontId); |
369 | updateTextCStr_LabelWidget(lock, "\U0001f512"); | 369 | updateTextCStr_LabelWidget(lock, "\U0001f512"); |
370 | iInputWidget *url = new_InputWidget(0); | 370 | /* URL input field. */ { |
371 | setSelectAllOnFocus_InputWidget(url, iTrue); | 371 | iInputWidget *url = new_InputWidget(0); |
372 | setId_Widget(as_Widget(url), "url"); | 372 | setSelectAllOnFocus_InputWidget(url, iTrue); |
373 | setNotifyEdits_InputWidget(url, iTrue); | 373 | setId_Widget(as_Widget(url), "url"); |
374 | setTextCStr_InputWidget(url, "gemini://"); | 374 | setNotifyEdits_InputWidget(url, iTrue); |
375 | addChildFlags_Widget(navBar, iClob(url), expand_WidgetFlag); | 375 | setTextCStr_InputWidget(url, "gemini://"); |
376 | addChildFlags_Widget(navBar, iClob(url), expand_WidgetFlag); | ||
377 | /* Download progress indicator is inside the input field, but hidden normally. */ | ||
378 | setPadding_Widget(as_Widget(url),0, 0, gap_UI * 1, 0); | ||
379 | iLabelWidget *progress = new_LabelWidget(uiTextCaution_ColorEscape "00.000 MB", 0, 0, NULL); | ||
380 | setId_Widget(as_Widget(progress), "document.progress"); | ||
381 | setAlignVisually_LabelWidget(progress, iTrue); | ||
382 | shrink_Rect(&as_Widget(progress)->rect, init_I2(0, gap_UI)); | ||
383 | addChildFlags_Widget(as_Widget(url), | ||
384 | iClob(progress), | ||
385 | moveToParentRightEdge_WidgetFlag); | ||
386 | setBackgroundColor_Widget(as_Widget(progress), uiBackground_ColorId); | ||
387 | } | ||
376 | setId_Widget(addChild_Widget( | 388 | setId_Widget(addChild_Widget( |
377 | navBar, iClob(newIcon_LabelWidget(reloadCStr_, 0, 0, "navigate.reload"))), | 389 | navBar, iClob(newIcon_LabelWidget(reloadCStr_, 0, 0, "navigate.reload"))), |
378 | "reload"); | 390 | "reload"); |