mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
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:
parent
1117638b52
commit
c1c7674ae2
7 changed files with 58 additions and 20 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue