MCPcopy Create free account
hub / github.com/Entware/Entware / set_theme

Function set_theme

scripts/config/lxdialog/util.c:149–164  ·  view source on GitHub ↗

* Select color theme */

Source from the content-addressed store, hash-verified

147 * Select color theme
148 */
149static 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
166static void init_one_color(struct dialog_color *color)
167{

Callers 1

color_setupFunction · 0.85

Calls 3

set_bluetitle_themeFunction · 0.85
set_classic_themeFunction · 0.85
set_blackbg_themeFunction · 0.85

Tested by

no test coverage detected