Skip to content

Commit

Permalink
Fixed Call List selected line colors in monochrome terminals #21
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaian committed Feb 6, 2015
1 parent 4daf954 commit 4dfc111
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui_call_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ call_list_draw(PANEL *panel)

// Highlight active call
if (call == info->cur_call) {
wattron(win, COLOR_PAIR(CP_DEF_ON_BLUE));
wattron(win, A_REVERSE | COLOR_PAIR(CP_BLUE_ON_WHITE));
}

// Set current line background
Expand All @@ -282,8 +282,9 @@ call_list_draw(PANEL *panel)
cline++;

wattroff(win, COLOR_PAIR(CP_DEFAULT));
wattroff(win, COLOR_PAIR(CP_BLUE_ON_DEF));
wattroff(win, COLOR_PAIR(CP_BLUE_ON_WHITE));
wattroff(win, A_BOLD);
wattroff(win, A_REVERSE);
}

// Draw scrollbar to the right
Expand Down
1 change: 1 addition & 0 deletions src/ui_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ init_interface()
init_pair(CP_DEF_ON_CYAN, fg, COLOR_CYAN);
init_pair(CP_DEF_ON_BLUE, fg, COLOR_BLUE);
init_pair(CP_BLACK_ON_CYAN, COLOR_BLACK, COLOR_CYAN);
init_pair(CP_BLUE_ON_WHITE, COLOR_BLUE, COLOR_WHITE);

return 0;
}
Expand Down
1 change: 1 addition & 0 deletions src/ui_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ enum sngrep_colors_pairs
CP_DEF_ON_CYAN,
CP_DEF_ON_BLUE,
CP_BLACK_ON_CYAN,
CP_BLUE_ON_WHITE,
};

// Used to configure color pairs only with fg color
Expand Down

0 comments on commit 4dfc111

Please sign in to comment.