mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Lots of /HILIGHT changes. You can use color names with -color. Window
numbers are colored with the highlight color in activity statusbar item. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@398 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
5da58d5849
commit
e90cdaf4ca
10 changed files with 145 additions and 26 deletions
|
|
@ -327,7 +327,7 @@ static void draw_activity(gchar *title, gboolean act, gboolean det)
|
|||
{
|
||||
window = tmp->data;
|
||||
|
||||
is_det = window->new_data == NEWDATA_MSG_FORYOU;
|
||||
is_det = window->new_data >= NEWDATA_HILIGHT;
|
||||
if (is_det && !det) continue;
|
||||
if (!is_det && !act) continue;
|
||||
|
||||
|
|
@ -342,14 +342,14 @@ static void draw_activity(gchar *title, gboolean act, gboolean det)
|
|||
ltoa(str, window->refnum);
|
||||
switch (window->new_data)
|
||||
{
|
||||
case NEWDATA_TEXT:
|
||||
case NEWDATA_TEXT:
|
||||
set_color((1 << 4)+3);
|
||||
break;
|
||||
case NEWDATA_MSG:
|
||||
case NEWDATA_MSG:
|
||||
set_color((1 << 4)+15);
|
||||
break;
|
||||
case NEWDATA_MSG_FORYOU:
|
||||
set_color((1 << 4)+13);
|
||||
case NEWDATA_HILIGHT:
|
||||
set_color((1 << 4) + (window->last_color > 0 ? mirc_colors[window->last_color] : 13));
|
||||
break;
|
||||
}
|
||||
addstr(str);
|
||||
|
|
@ -372,7 +372,7 @@ static void statusbar_activity(SBAR_ITEM_REC *item, int ypos)
|
|||
|
||||
size_needed += 1+ltoa(str, window->refnum);
|
||||
|
||||
if (!use_colors && window->new_data == NEWDATA_MSG_FORYOU)
|
||||
if (!use_colors && window->new_data >= NEWDATA_HILIGHT)
|
||||
det = TRUE;
|
||||
else
|
||||
act = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue