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:
@@ -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