theme->default_color is now used again, added default_bold_color which

is used with default bolds since A_NORMAL|A_BOLD doesn't seem to do
anything with curses..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1206 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-02-10 10:19:47 +00:00 committed by cras
commit 355e7dd841
4 changed files with 18 additions and 12 deletions

View file

@ -678,7 +678,8 @@ static void theme_read(THEME_REC *theme, const char *path, const char *data)
config = config_open(path, -1);
if (config == NULL) {
/* didn't exist or no access? */
theme->default_color = 15;
theme->default_color = 0;
theme->default_bold_color = 7;
return;
}
config_parse(config);
@ -706,7 +707,10 @@ static void theme_read(THEME_REC *theme, const char *path, const char *data)
}
}
theme->default_color = config_get_int(config, NULL, "default_color", 15);
theme->default_color =
config_get_int(config, NULL, "default_color", 0);
theme->default_bold_color =
config_get_int(config, NULL, "default_bold_color", 7);
theme_read_replaces(config, theme);
theme_read_abstracts(config, theme);
@ -1034,7 +1038,8 @@ static void themes_read(void)
fname = g_strdup_printf("%s/.irssi/default.theme",
g_get_home_dir());
current_theme = theme_create(fname, "default");
current_theme->default_color = 15;
current_theme->default_color = 0;
current_theme->default_bold_color = 7;
theme_read(current_theme, NULL, default_theme);
g_free(fname);
}

View file

@ -14,7 +14,7 @@ typedef struct {
char *path;
char *name;
int default_color;
int default_color, default_bold_color;
GHashTable *modules;
GSList *replace_keys;