Added theme files support with /theme command

This commit is contained in:
James Booth
2012-11-21 22:33:07 +00:00
parent e8b2b7196c
commit cd4465394b
6 changed files with 118 additions and 30 deletions

View File

@@ -109,6 +109,21 @@ gui_init(void)
cbreak();
keypad(stdscr, TRUE);
win_load_colours();
refresh();
create_title_bar();
create_status_bar();
create_input_window();
_create_windows();
dirty = TRUE;
}
void
win_load_colours(void)
{
if (has_colors()) {
use_default_colors();
start_color();
@@ -148,15 +163,6 @@ gui_init(void)
init_pair(60, theme_get_typing(), theme_get_bkgnd());
init_pair(61, theme_get_gone(), theme_get_bkgnd());
}
refresh();
create_title_bar();
create_status_bar();
create_input_window();
_create_windows();
dirty = TRUE;
}
void