Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/screen.c @ 785:7e0562e3bc83
Replace color_highlight with color_msgout
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 02 Apr 2006 23:11:55 +0200 |
parents | 057ffe7c43dc |
children | 5d4ad1d77da4 |
comparison
equal
deleted
inserted
replaced
784:d7f3b58db522 | 785:7e0562e3bc83 |
---|---|
141 static void ParseColors(void) | 141 static void ParseColors(void) |
142 { | 142 { |
143 const char *colors[] = { | 143 const char *colors[] = { |
144 "", "", | 144 "", "", |
145 "general", | 145 "general", |
146 "highlight", | 146 "msgout", |
147 "status", | 147 "status", |
148 "roster", | 148 "roster", |
149 "rostersel", | 149 "rostersel", |
150 "rosterselmsg", | 150 "rosterselmsg", |
151 "rosternewmsg", | 151 "rosternewmsg", |
188 break; | 188 break; |
189 case COLOR_GENERAL: | 189 case COLOR_GENERAL: |
190 init_pair(i+1, ((color) ? FindColor(color) : COLOR_WHITE), | 190 init_pair(i+1, ((color) ? FindColor(color) : COLOR_WHITE), |
191 FindColor(background)); | 191 FindColor(background)); |
192 break; | 192 break; |
193 case COLOR_HIGHLIGHT: | 193 case COLOR_MSGOUT: |
194 init_pair(i+1, ((color) ? FindColor(color) : COLOR_CYAN), | 194 init_pair(i+1, ((color) ? FindColor(color) : COLOR_CYAN), |
195 FindColor(background)); | 195 FindColor(background)); |
196 break; | 196 break; |
197 case COLOR_STATUS: | 197 case COLOR_STATUS: |
198 init_pair(i+1, ((color) ? FindColor(color) : COLOR_WHITE), | 198 init_pair(i+1, ((color) ? FindColor(color) : COLOR_WHITE), |
481 line = *(lines+n); | 481 line = *(lines+n); |
482 // NOTE: update PREFIX_WIDTH if you change the date format!! | 482 // NOTE: update PREFIX_WIDTH if you change the date format!! |
483 // You need to set it to the whole prefix length + 1 | 483 // You need to set it to the whole prefix length + 1 |
484 if (line) { | 484 if (line) { |
485 if (line->flags & HBB_PREFIX_HLIGHT) | 485 if (line->flags & HBB_PREFIX_HLIGHT) |
486 wattrset(win_entry->win, get_color(COLOR_HIGHLIGHT)); | 486 wattrset(win_entry->win, get_color(COLOR_MSGOUT)); |
487 | 487 |
488 if (line->timestamp) { | 488 if (line->timestamp) { |
489 strftime(date, 30, "%m-%d %H:%M", localtime(&line->timestamp)); | 489 strftime(date, 30, "%m-%d %H:%M", localtime(&line->timestamp)); |
490 } else | 490 } else |
491 strcpy(date, " "); | 491 strcpy(date, " "); |