fix two minor bugs with colors
1. I used statusbar_color instead of header_color by accident 2. state_line_color has to be explicitely turned off before setting new color
This commit is contained in:
@@ -241,7 +241,7 @@ int main(int argc, char *argv[])
|
||||
mvwhline(wHeader->Raw(), 2, 0, 0, COLS);
|
||||
mvwhline(wHeader->Raw(), 4, 0, 0, COLS);
|
||||
*wHeader << XY((COLS-Window::Length(title))/2, 3);
|
||||
*wHeader << Config.statusbar_color << title << clEnd;
|
||||
*wHeader << Config.header_color << title << clEnd;
|
||||
*wHeader << clEnd << fmtBoldEnd;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -600,6 +600,7 @@ void NcmpcppStatusChanged(Connection *, StatusChanges changed, void *)
|
||||
if (!switch_state.empty())
|
||||
{
|
||||
mvprintw(1, COLS-switch_state.length()-3, "[");
|
||||
attroff(COLOR_PAIR(Config.state_line_color));
|
||||
attron(COLOR_PAIR(Config.state_flags_color));
|
||||
mvprintw(1, COLS-switch_state.length()-2, "%s", switch_state.c_str());
|
||||
attroff(COLOR_PAIR(Config.state_flags_color));
|
||||
|
||||
Reference in New Issue
Block a user