mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Hilighting updates. /HILIGHT -color, /SET hilight_color and /SET
hilight_act_color now use %codes for specifying color. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1402 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
aa4a4d4072
commit
c3da7fa8ab
13 changed files with 97 additions and 152 deletions
|
|
@ -226,20 +226,14 @@ static char *get_activity_list(int normal, int hilight)
|
|||
g_string_append(str, "%W");
|
||||
break;
|
||||
default:
|
||||
/*FIXME: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]);
|
||||
g_string_append(str, "%M");
|
||||
} else */{
|
||||
g_string_append(str, "%M");
|
||||
}
|
||||
g_string_append(str, window->hilight_color == NULL ?
|
||||
"%M" : window->hilight_color);
|
||||
break;
|
||||
}
|
||||
g_string_sprintfa(str, "%d", window->refnum);
|
||||
g_string_sprintfa(str, "%d", window->refnum);
|
||||
|
||||
/* make sure the background is returned to default */
|
||||
g_string_append(str, "%n");
|
||||
}
|
||||
|
||||
ret = str->len == 0 ? NULL : str->str;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue