diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-30 09:07:21 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-30 09:07:21 +0200 |
commit | 653c055d145d940a318025ca74762f6b8024bf5a (patch) | |
tree | 4d79badfd89ad84367d154b04215dac9cea13e9b /src/ui | |
parent | a13a701a20fe2677f3589f27d8d788a71f046095 (diff) |
SidebarWidget: Adjusted layout
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/sidebarwidget.c | 5 |
1 files changed, 2 insertions, 3 deletions
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) { | |||
250 | if (isEmpty_ListWidget(d->list)) { | 250 | if (isEmpty_ListWidget(d->list)) { |
251 | if (d->mode == identities_SidebarMode) { | 251 | if (d->mode == identities_SidebarMode) { |
252 | iWidget *div = makeVDiv_Widget(); | 252 | iWidget *div = makeVDiv_Widget(); |
253 | setPadding_Widget(div, 3 * gap_UI, 0, 3 * gap_UI, 0); | 253 | setPadding_Widget(div, 3 * gap_UI, 0, 3 * gap_UI, 2 * gap_UI); |
254 | addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ | 254 | addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ |
255 | iLabelWidget *msg = new_LabelWidget("No Identities", 0, 0, NULL); | 255 | iLabelWidget *msg = new_LabelWidget("No Identities", 0, 0, NULL); |
256 | setFont_LabelWidget(msg, uiLabelLarge_FontId); | 256 | setFont_LabelWidget(msg, uiLabelLarge_FontId); |
257 | addChildFlags_Widget(div, iClob(msg), frameless_WidgetFlag); | 257 | addChildFlags_Widget(div, iClob(msg), frameless_WidgetFlag); |
258 | addChild_Widget(div, iClob(makePadding_Widget(3 * gap_UI))); | 258 | addChild_Widget(div, iClob(makePadding_Widget(3 * gap_UI))); |
259 | addChild_Widget(div, iClob(new_LabelWidget("New Identity...", 0, 0, "ident.new"))); | 259 | addChild_Widget(div, iClob(new_LabelWidget("New Identity...", 0, 0, "ident.new"))); |
260 | addChild_Widget(div, iClob(makePadding_Widget(3 * gap_UI))); | 260 | addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ |
261 | addChildFlags_Widget( | 261 | addChildFlags_Widget( |
262 | div, | 262 | div, |
263 | iClob(new_LabelWidget("See " uiTextStrong_ColorEscape "Help" uiText_ColorEscape | 263 | iClob(new_LabelWidget("See " uiTextStrong_ColorEscape "Help" uiText_ColorEscape |
@@ -266,7 +266,6 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) { | |||
266 | 0, | 266 | 0, |
267 | "!open newtab:1 gotoheading:Identities url:about:help")), | 267 | "!open newtab:1 gotoheading:Identities url:about:help")), |
268 | frameless_WidgetFlag | fixedHeight_WidgetFlag | wrapText_WidgetFlag); | 268 | frameless_WidgetFlag | fixedHeight_WidgetFlag | wrapText_WidgetFlag); |
269 | addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); /* pad */ | ||
270 | addChild_Widget(d->blank, iClob(div)); | 269 | addChild_Widget(d->blank, iClob(div)); |
271 | } | 270 | } |
272 | arrange_Widget(d->blank); | 271 | arrange_Widget(d->blank); |