* Select color theme */
| 147 | * Select color theme |
| 148 | */ |
| 149 | static int set_theme(const char *theme) |
| 150 | { |
| 151 | int use_color = 1; |
| 152 | if (!theme) |
| 153 | set_bluetitle_theme(); |
| 154 | else if (strcmp(theme, "classic") == 0) |
| 155 | set_classic_theme(); |
| 156 | else if (strcmp(theme, "bluetitle") == 0) |
| 157 | set_bluetitle_theme(); |
| 158 | else if (strcmp(theme, "blackbg") == 0) |
| 159 | set_blackbg_theme(); |
| 160 | else if (strcmp(theme, "mono") == 0) |
| 161 | use_color = 0; |
| 162 | |
| 163 | return use_color; |
| 164 | } |
| 165 | |
| 166 | static void init_one_color(struct dialog_color *color) |
| 167 | { |
no test coverage detected