From: James McGlashan (DarkFox) Date: Wed, 8 Jan 2014 00:36:00 +0000 (+1100) Subject: Fixed colours for status-flags (previously documented but not a feature) X-Git-Tag: v0.22~12 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bf38fb2de7faf3bc8012fffce9097284b4eed0f3;p=ncmpc.git Fixed colours for status-flags (previously documented but not a feature) --- diff --git a/NEWS b/NEWS index 9b45ad1..a9b5944 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ ncmpc 0.22 - not yet released * rename "playlist" to "queue" * remove useless "Connected to ..." message * require libmpdclient 2.3, MPD 0.16 +* patched color line-flags ncmpc 0.21 - (2013-04-11) diff --git a/src/colors.c b/src/colors.c index 449d372..0e78cad 100644 --- a/src/colors.c +++ b/src/colors.c @@ -53,6 +53,7 @@ static color_entry_t colors[COLOR_END] = { [COLOR_TITLE_BOLD] = {"title-bold", COLOR_YELLOW | A_BOLD, A_BOLD }, [COLOR_LINE] = {"line", COLOR_WHITE, A_NORMAL}, [COLOR_LINE_BOLD] = {"line-bold", COLOR_WHITE | A_BOLD, A_BOLD }, + [COLOR_LINE_FLAGS] = {"line-flags", COLOR_YELLOW, A_NORMAL}, [COLOR_LIST] = {"list", COLOR_GREEN, A_NORMAL}, [COLOR_LIST_BOLD] = {"list-bold", COLOR_GREEN | A_BOLD, A_BOLD }, [COLOR_PROGRESSBAR] = {"progressbar", COLOR_WHITE, A_NORMAL}, diff --git a/src/colors.h b/src/colors.h index 4d8e876..f7e256c 100644 --- a/src/colors.h +++ b/src/colors.h @@ -29,6 +29,7 @@ enum color { COLOR_TITLE_BOLD, COLOR_LINE, COLOR_LINE_BOLD, + COLOR_LINE_FLAGS, COLOR_LIST, COLOR_LIST_BOLD, COLOR_PROGRESSBAR, diff --git a/src/title_bar.c b/src/title_bar.c index e8b9138..1a19e02 100644 --- a/src/title_bar.c +++ b/src/title_bar.c @@ -125,7 +125,7 @@ title_bar_paint(const struct title_bar *p, const char *title, if (flags[0]) { wmove(w, 1, p->window.cols - strlen(flags) - 3); waddch(w, '['); - colors_use(w, COLOR_LINE_BOLD); + colors_use(w, COLOR_LINE_FLAGS); waddstr(w, flags); colors_use(w, COLOR_LINE); waddch(w, ']');