/* Restore previous state of primary color scheme. */ static void restore_primary_color_scheme(const col_scheme_t *cs) { cfg.cs = *cs; load_color_scheme_colors(); update_screen(UT_FULL); }
/* Loads color scheme. Converts old format to the new one if needed. * Terminates application with error message on error. */ static void load_scheme(void) { if(are_old_color_schemes()) { if(run_converter(2) != 0) { endwin(); fputs("Problems with running vifmrc-converter\n", stderr); exit(0); } } if(color_scheme_exists(curr_stats.color_scheme)) { load_color_scheme(curr_stats.color_scheme); } load_color_scheme_colors(); }