mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[console] Tweak the server status bar colors
Now the yellow stands out nicely.
This commit is contained in:
parent
dd17e8120d
commit
5f4a330b02
1 changed files with 9 additions and 7 deletions
|
@ -121,6 +121,7 @@ static int view_offset;
|
|||
#define CP_RED_BLUE (8)
|
||||
#define CP_CYAN_BLUE (9)
|
||||
#define CP_MAGENTA_BLUE (10)
|
||||
#define CP_WHITE_BLUE (11)
|
||||
|
||||
static chtype attr_table[16] = {
|
||||
A_NORMAL,
|
||||
|
@ -131,13 +132,13 @@ static chtype attr_table[16] = {
|
|||
COLOR_PAIR (CP_CYAN_BLACK),
|
||||
COLOR_PAIR (CP_MAGENTA_BLACK),
|
||||
0,
|
||||
A_NORMAL,
|
||||
COLOR_PAIR (CP_GREEN_BLUE),
|
||||
COLOR_PAIR (CP_RED_BLUE),
|
||||
COLOR_PAIR(CP_WHITE_BLUE),
|
||||
A_BOLD | COLOR_PAIR (CP_GREEN_BLUE),
|
||||
A_BOLD | COLOR_PAIR (CP_RED_BLUE),
|
||||
0,
|
||||
COLOR_PAIR (CP_YELLOW_BLUE),
|
||||
COLOR_PAIR (CP_CYAN_BLUE),
|
||||
COLOR_PAIR (CP_MAGENTA_BLUE),
|
||||
A_BOLD | COLOR_PAIR (CP_YELLOW_BLUE),
|
||||
A_BOLD | COLOR_PAIR (CP_CYAN_BLUE),
|
||||
A_BOLD | COLOR_PAIR (CP_MAGENTA_BLUE),
|
||||
0,
|
||||
};
|
||||
|
||||
|
@ -276,7 +277,7 @@ draw_status (view_t *view)
|
|||
memset (sb->text, ' ', sb->width);
|
||||
view_draw (view);
|
||||
if (memcmp (old, sb->text, sb->width)) {
|
||||
wbkgdset (win, COLOR_PAIR (CP_YELLOW_BLUE));
|
||||
wbkgdset (win, COLOR_PAIR (CP_WHITE_BLUE));
|
||||
wmove (win, 0, 0);
|
||||
for (i = 0; i < sb->width; i++)
|
||||
draw_fun_char (win, sb->text[i], 1);
|
||||
|
@ -620,6 +621,7 @@ init (void)
|
|||
init_pair (CP_RED_BLUE, COLOR_RED, COLOR_BLUE);
|
||||
init_pair (CP_CYAN_BLUE, COLOR_CYAN, COLOR_BLUE);
|
||||
init_pair (CP_MAGENTA_BLUE, COLOR_MAGENTA, COLOR_BLUE);
|
||||
init_pair (CP_WHITE_BLUE, COLOR_WHITE, COLOR_BLUE);
|
||||
|
||||
con_linewidth = screen_x;
|
||||
|
||||
|
|
Loading…
Reference in a new issue