Beginnings of configurable statusbar. The existing items can be configured

in default.theme.

If some abstract isn't set in theme, it fallbacks to the one in
default.theme now. This should help with old themes, and maybe themes
that don't change something should just keep those parts commented out..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1386 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-03-15 02:26:12 +00:00 committed by cras
commit 87777968c3
8 changed files with 317 additions and 244 deletions

View file

@ -116,7 +116,11 @@ static void read_settings(void)
use_colors = settings_get_bool("colors");
read_signals();
if (use_colors != old_colors) irssi_redraw();
if (use_colors && !has_colors())
use_colors = FALSE;
if (use_colors != old_colors)
irssi_redraw();
}
static int init_curses(void)
@ -151,8 +155,8 @@ static int init_curses(void)
if (has_colors())
start_color();
else
use_colors = FALSE;
else if (use_colors)
use_colors = FALSE;
#ifdef HAVE_NCURSES_USE_DEFAULT_COLORS
/* this lets us to use the "default" background color for colors <= 7 so