From 653c055d145d940a318025ca74762f6b8024bf5a Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 30 Oct 2020 09:07:21 +0200 Subject: SidebarWidget: Adjusted layout --- src/ui/sidebarwidget.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index 0ec43249..f089f48d 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c @@ -250,14 +250,14 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) { if (isEmpty_ListWidget(d->list)) { if (d->mode == identities_SidebarMode) { iWidget *div = makeVDiv_Widget(); - setPadding_Widget(div, 3 * gap_UI, 0, 3 * gap_UI, 0); + setPadding_Widget(div, 3 * gap_UI, 0, 3 * gap_UI, 2 * gap_UI); addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ iLabelWidget *msg = new_LabelWidget("No Identities", 0, 0, NULL); setFont_LabelWidget(msg, uiLabelLarge_FontId); addChildFlags_Widget(div, iClob(msg), frameless_WidgetFlag); addChild_Widget(div, iClob(makePadding_Widget(3 * gap_UI))); addChild_Widget(div, iClob(new_LabelWidget("New Identity...", 0, 0, "ident.new"))); - addChild_Widget(div, iClob(makePadding_Widget(3 * gap_UI))); + addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ addChildFlags_Widget( div, iClob(new_LabelWidget("See " uiTextStrong_ColorEscape "Help" uiText_ColorEscape @@ -266,7 +266,6 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) { 0, "!open newtab:1 gotoheading:Identities url:about:help")), frameless_WidgetFlag | fixedHeight_WidgetFlag | wrapText_WidgetFlag); - addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ addChild_Widget(d->blank, iClob(div)); } arrange_Widget(d->blank); -- cgit v1.2.3