1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

/SET hilight_act_color - default color to use for highlighting in

activity line


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1203 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-02-10 08:44:19 +00:00 committed by cras
parent 5ab27ea604
commit 7c21fb84ee

View File

@ -301,8 +301,10 @@ char *hilight_get_color(HILIGHT_REC *rec, int activity)
color = activity && rec->act_color != NULL ? color = activity && rec->act_color != NULL ?
rec->act_color : rec->color; rec->act_color : rec->color;
if (color == NULL) if (color == NULL) {
color = settings_get_str("hilight_color"); color = settings_get_str(activity ? "hilight_act_color" :
"hilight_color");
}
if (isalpha((int) *color)) { if (isalpha((int) *color)) {
/* color was specified with it's name - try to convert it */ /* color was specified with it's name - try to convert it */
@ -711,6 +713,7 @@ static void read_settings(void)
void hilight_text_init(void) void hilight_text_init(void)
{ {
settings_add_str("lookandfeel", "hilight_color", "8"); settings_add_str("lookandfeel", "hilight_color", "8");
settings_add_str("lookandfeel", "hilight_act_color", "13");
settings_add_str("lookandfeel", "hilight_level", "PUBLIC DCCMSGS"); settings_add_str("lookandfeel", "hilight_level", "PUBLIC DCCMSGS");
next_nick_hilight = NULL; next_nick_hilight = NULL;