summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/nc-subset.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-06-26 12:06:33 +0800
committerJeremy Kerr <jk@ozlabs.org>2015-06-26 12:06:33 +0800
commitf0ab23af1b0758b6ff984ba26a2cd7dbf25ea775 (patch)
treec0f9249d4e880869c1223eba81edf021393a3217 /ui/ncurses/nc-subset.c
parent757d3ed67988099a279fa4f05f07ace8bb3f7596 (diff)
downloadtalos-petitboot-f0ab23af1b0758b6ff984ba26a2cd7dbf25ea775.tar.gz
talos-petitboot-f0ab23af1b0758b6ff984ba26a2cd7dbf25ea775.zip
ui/ncurses: Layout tweaks for boot order interface
This change implements a few minor tweaks for the bootorder layout interface: - make the verical spacing of widgets more consistent (we have a couple of 3-line gaps) - use a consistent 2-space gap between buttons on the same line - clarify the title text for the subset widget instance, and move the select widget closer to the title - use consistent title-case for widget labels - left-align the select & button widgets on the subset screen, for consistency with other screens Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/nc-subset.c')
-rw-r--r--ui/ncurses/nc-subset.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/ncurses/nc-subset.c b/ui/ncurses/nc-subset.c
index d90ed20..f38e394 100644
--- a/ui/ncurses/nc-subset.c
+++ b/ui/ncurses/nc-subset.c
@@ -144,7 +144,7 @@ static void cancel_click(void *arg)
static void subset_screen_layout_widgets(struct subset_screen *screen)
{
- int y = 2;
+ int y = 1;
/* select */
widget_move(widget_select_base(screen->widgets.options_f),
@@ -155,9 +155,9 @@ static void subset_screen_layout_widgets(struct subset_screen *screen)
y += 1;
widget_move(widget_button_base(screen->widgets.ok_b),
- y, screen->field_x + 12);
+ y, screen->field_x);
widget_move(widget_button_base(screen->widgets.cancel_b),
- y, screen->field_x + 24);
+ y, screen->field_x + 14);
}
static void subset_screen_option_select(void *arg, int value)
@@ -265,8 +265,8 @@ struct subset_screen *subset_screen_init(struct cui *cui,
screen->cui = cui;
screen->on_exit = on_exit;
screen->options = (struct nc_widget_subset *) subset;
- screen->label_x = 2;
- screen->field_x = 22;
+ screen->label_x = 8;
+ screen->field_x = 8;
screen->return_scr = current_scr;
OpenPOWER on IntegriCloud