summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-13 20:11:37 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-13 20:11:37 +0200
commitb752386248e24d33edafb07b5bf9bc430626ae9b (patch)
tree59c596d9f9cfa275adbdac4a5f2d76983b2cd78f /src
parentf18c5e9a259c88f7bc3bbc9cf8afcf805ba00a60 (diff)
SidebarWidget: Added "Import..." to empty Identities tab
Fixed visual issues with the Help link in the bottom.
Diffstat (limited to 'src')
-rw-r--r--src/ui/sidebarwidget.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index c41a8ad1..36c35b2e 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -401,13 +401,16 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) {
401 addChildFlags_Widget(div, iClob(msg), frameless_WidgetFlag); 401 addChildFlags_Widget(div, iClob(msg), frameless_WidgetFlag);
402 addChild_Widget(div, iClob(makePadding_Widget(3 * gap_UI))); 402 addChild_Widget(div, iClob(makePadding_Widget(3 * gap_UI)));
403 addChild_Widget(div, iClob(new_LabelWidget("New Identity...", "ident.new"))); 403 addChild_Widget(div, iClob(new_LabelWidget("New Identity...", "ident.new")));
404 addChild_Widget(div, iClob(makePadding_Widget(gap_UI)));
405 addChild_Widget(div, iClob(new_LabelWidget("Import...", "ident.import")));
404 addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ 406 addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */
405 addChildFlags_Widget( 407 setBackgroundColor_Widget(addChildFlags_Widget(
406 div, 408 div,
407 iClob(new_LabelWidget("See " uiTextStrong_ColorEscape "Help" uiText_ColorEscape 409 iClob(new_LabelWidget("See " uiTextStrong_ColorEscape "Help" restore_ColorEscape
408 " for more information about TLS client certificates.", 410 " for more information about TLS client certificates.",
409 "!open newtab:1 gotoheading:1.6 url:about:help")), 411 "!open newtab:1 gotoheading:1.6 url:about:help")),
410 frameless_WidgetFlag | fixedHeight_WidgetFlag | wrapText_WidgetFlag); 412 frameless_WidgetFlag | fixedHeight_WidgetFlag | wrapText_WidgetFlag),
413 uiBackgroundSidebar_ColorId);
411 addChild_Widget(d->blank, iClob(div)); 414 addChild_Widget(d->blank, iClob(div));
412 } 415 }
413 arrange_Widget(d->blank); 416 arrange_Widget(d->blank);