Browse Source

[ui] Change "login" colours to match other UIs

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
567b9bf9e7
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      src/hci/tui/login_ui.c

+ 7
- 7
src/hci/tui/login_ui.c View File

35
 
35
 
36
 /* Colour pairs */
36
 /* Colour pairs */
37
 #define CPAIR_NORMAL		1
37
 #define CPAIR_NORMAL		1
38
-#define CPAIR_LABEL		2
39
-#define CPAIR_EDITBOX		3
38
+#define CPAIR_EDIT		2
40
 
39
 
41
 /* Screen layout */
40
 /* Screen layout */
42
 #define USERNAME_LABEL_ROW	8
41
 #define USERNAME_LABEL_ROW	8
65
 	/* Initialise UI */
64
 	/* Initialise UI */
66
 	initscr();
65
 	initscr();
67
 	start_color();
66
 	start_color();
68
-	init_pair ( CPAIR_NORMAL, COLOR_WHITE, COLOR_BLACK );
69
-	init_pair ( CPAIR_LABEL, COLOR_WHITE, COLOR_BLACK );
70
-	init_pair ( CPAIR_EDITBOX, COLOR_WHITE, COLOR_BLUE );
67
+	init_pair ( CPAIR_NORMAL, COLOR_WHITE, COLOR_BLUE );
68
+	init_pair ( CPAIR_EDIT, COLOR_BLACK, COLOR_CYAN );
71
 	init_editbox ( &username_box, username, sizeof ( username ), NULL,
69
 	init_editbox ( &username_box, username, sizeof ( username ), NULL,
72
 		       USERNAME_ROW, EDITBOX_COL, EDITBOX_WIDTH, 0 );
70
 		       USERNAME_ROW, EDITBOX_COL, EDITBOX_WIDTH, 0 );
73
 	init_editbox ( &password_box, password, sizeof ( password ), NULL,
71
 	init_editbox ( &password_box, password, sizeof ( password ), NULL,
75
 		       EDITBOX_STARS );
73
 		       EDITBOX_STARS );
76
 
74
 
77
 	/* Draw initial UI */
75
 	/* Draw initial UI */
76
+	color_set ( CPAIR_NORMAL, NULL );
78
 	erase();
77
 	erase();
79
-	color_set ( CPAIR_LABEL, NULL );
78
+	attron ( A_BOLD );
80
 	mvprintw ( USERNAME_LABEL_ROW, LABEL_COL, "Username:" );
79
 	mvprintw ( USERNAME_LABEL_ROW, LABEL_COL, "Username:" );
81
 	mvprintw ( PASSWORD_LABEL_ROW, LABEL_COL, "Password:" );
80
 	mvprintw ( PASSWORD_LABEL_ROW, LABEL_COL, "Password:" );
82
-	color_set ( CPAIR_EDITBOX, NULL );
81
+	attroff ( A_BOLD );
82
+	color_set ( CPAIR_EDIT, NULL );
83
 	draw_editbox ( &username_box );
83
 	draw_editbox ( &username_box );
84
 	draw_editbox ( &password_box );
84
 	draw_editbox ( &password_box );
85
 
85
 

Loading…
Cancel
Save