It's silly to have a function for this.
init_curses();
}
-static void change_theme(int next)
-{
- if (next)
- theme_next(&theme);
- else
- theme_prev(&theme);
- com_refresh();
- PARA_NOTICE_LOG("new theme: %s\n", theme.name);
-}
-
static void com_next_theme(void)
{
- change_theme(1);
+ theme_next(&theme);
+ com_refresh();
}
static void com_prev_theme(void)
{
- change_theme(0);
+ theme_prev(&theme);
+ com_refresh();
}
-
static void handle_command(int c)
{
int i;
t->name = themes[num].name;
themes[num].init(t);
current_theme_num = num;
+ PARA_NOTICE_LOG("theme: %s\n", t->name);
}
void theme_init(const char *name, struct gui_theme *t)