%n+bg color change doesn't anymore set foreground black. changed theme's

default_bold_color to default_real_color.

Activity list printed first item with white always. Color redrawed itself
every second.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1381 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-03-12 19:43:32 +00:00 committed by cras
commit 1d453ed92c
4 changed files with 24 additions and 14 deletions

View file

@ -740,8 +740,8 @@ static int theme_read(THEME_REC *theme, const char *path, const char *data)
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->default_real_color =
config_get_int(config, NULL, "default_real_color", 7);
theme_read_replaces(config, theme);
theme_read_abstracts(config, theme);
@ -1069,7 +1069,7 @@ static void themes_read(void)
g_get_home_dir());
current_theme = theme_create(fname, "default");
current_theme->default_color = 0;
current_theme->default_bold_color = 7;
current_theme->default_real_color = 7;
theme_read(current_theme, NULL, default_theme);
g_free(fname);
}

View file

@ -15,7 +15,12 @@ typedef struct {
char *name;
time_t last_modify;
int default_color, default_bold_color;
int default_color; /* default color to use with text with default
background. default is 0 which means the default
color set by terminal */
int default_real_color; /* default color to use with background set.
this shouldn't be 0, unless black is really
wanted. default is 7 (white). */
GHashTable *modules;
GSList *replace_keys;