diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-30 19:50:56 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-30 19:50:56 +0000 |
commit | e90cdaf4ca56ba0ace0448805f9ee8a89d3b7cdb (patch) | |
tree | 77ec7580793863c0c308e49471efe07c1ee3494b /src/fe-text/statusbar-items.c | |
parent | 5da58d5849f313d7c4596745cb792296428ea225 (diff) | |
download | irssi-e90cdaf4ca56ba0ace0448805f9ee8a89d3b7cdb.zip |
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
Diffstat (limited to 'src/fe-text/statusbar-items.c')
-rw-r--r-- | src/fe-text/statusbar-items.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c index 12c8b75a..4705cc64 100644 --- a/src/fe-text/statusbar-items.c +++ b/src/fe-text/statusbar-items.c @@ -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; |