X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=gui_theme.c;h=3c9886d18a2a2a3cbae88a74f79b052391b64672;hp=279ad9149add67324a0e11c595d66e59369f0f54;hb=18daa9110808af03e0aa56b91c10df9dafec2135;hpb=1833dfd4333e8c3099ba2fac39245e11fd123ae0 diff --git a/gui_theme.c b/gui_theme.c index 279ad914..3c9886d1 100644 --- a/gui_theme.c +++ b/gui_theme.c @@ -30,7 +30,7 @@ static void init_theme_simple(struct gui_theme *t) t->sep_fg = COLOR_CYAN; t->default_fg = COLOR_WHITE; t->default_bg = COLOR_BLUE; - t->sep_str = "*"; + t->sep_char = '*'; d[SI_BASENAME].prefix = ""; d[SI_BASENAME].postfix = ""; @@ -85,7 +85,7 @@ static void init_theme_colorful_blackness(struct gui_theme *t) t->err_msg_fg = COLOR_WHITE; t->sep_bg = COLOR_BLACK; /* color of the separator */ t->sep_fg = COLOR_BLUE; - t->sep_str = "-"; + t->sep_char = 0; /* default (ACS_HLINE) */ t->default_bg = COLOR_BLACK; t->default_fg = COLOR_MAGENTA; @@ -381,9 +381,10 @@ static void set_theme(int num, struct gui_theme *t) t->name = themes[num].name; themes[num].init(t); current_theme_num = num; + PARA_NOTICE_LOG("theme: %s\n", t->name); } -void init_theme_or_die(const char *name, struct gui_theme *t) +void theme_init(const char *name, struct gui_theme *t) { int i; @@ -398,12 +399,12 @@ void init_theme_or_die(const char *name, struct gui_theme *t) exit(EXIT_FAILURE); } -void prev_theme(struct gui_theme *t) +void theme_prev(struct gui_theme *t) { return set_theme(++current_theme_num, t); } -void next_theme(struct gui_theme *t) +void theme_next(struct gui_theme *t) { return set_theme(--current_theme_num, t); }