Highlight colors can now have background color set with fg,bg. Works

with activity list too, useful for example blinking.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1249 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-02-19 03:25:24 +00:00 committed by cras
commit c1c7674ae2
7 changed files with 58 additions and 20 deletions

View file

@ -353,9 +353,14 @@ static void draw_activity(gchar *title, gboolean act, gboolean det, int size)
set_color(stdscr, sbar_color_bold);
break;
default:
if (window->hilight_color > 0)
set_color(stdscr, sbar_color_background | mirc_colors[window->hilight_color%16]);
else
if (window->hilight_color > 0) {
int bg;
bg = window->hilight_bg_color == -1 ?
sbar_color_background :
(window->hilight_bg_color << 4);
set_color(stdscr, bg | mirc_colors[window->hilight_color%16]);
} else
set_color(stdscr, sbar_color_act_highlight);
break;
}