Add accent colors to the statusbar

This commit is contained in:
Zoe Roux
2022-06-03 12:43:37 +02:00
parent e4057343f3
commit ab7ebf787f
2 changed files with 8 additions and 2 deletions
+4
View File
@@ -65,6 +65,10 @@ static char *termcolor[] = {
termcol13,
termcol14,
termcol15,
accent,
secondary,
background,
foreground,
};
static char *colors[][3] = {
/* fg bg border */
+4 -2
View File
@@ -80,10 +80,12 @@ drawstatusbar(int x, char* stext)
i += 7;
} else if (text[i] == 'C') {
int c = atoi(text + ++i);
drw_clr_create(drw, &drw->scheme[ColFg], termcolor[c]);
if (c < sizeof(termcolor) / sizeof(*termcolor))
drw_clr_create(drw, &drw->scheme[ColFg], termcolor[c]);
} else if (text[i] == 'B') {
int c = atoi(text + ++i);
drw_clr_create(drw, &drw->scheme[ColBg], termcolor[c]);
if (c < sizeof(termcolor) / sizeof(*termcolor))
drw_clr_create(drw, &drw->scheme[ColBg], termcolor[c]);
} else if (text[i] == 'd') {
drw->scheme[ColFg] = scheme[SchemeNorm][ColFg];
drw->scheme[ColBg] = scheme[SchemeNorm][ColBg];