mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-11 14:10:34 +00:00
Make button highlighting more visible on B/W displays.
This commit is contained in:
parent
851790dd27
commit
e36f5f6c56
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18078
@ -328,14 +328,12 @@ void print_button(WINDOW *win, unsigned char *label, int y, int x, int selected)
|
||||
waddstr(win, selected ? "[" : " ");
|
||||
temp = strspn(label, " ");
|
||||
label += temp;
|
||||
wattrset(win, selected ? button_label_active_attr : button_label_inactive_attr);
|
||||
for (i = 0; i < temp; i++)
|
||||
waddch(win, ' ');
|
||||
wattrset(win, selected ? button_key_active_attr : button_key_inactive_attr);
|
||||
waddch(win, label[0]);
|
||||
wattrset(win, selected ? button_label_active_attr : button_label_inactive_attr);
|
||||
waddstr(win, label+1);
|
||||
wattrset(win, selected ? button_active_attr : button_inactive_attr);
|
||||
waddstr(win, label+1);
|
||||
waddstr(win, selected ? "]" : " ");
|
||||
wmove(win, y, x+temp+1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user