- font.fontstr = getenv("WMII_FONT");
- if (!font.fontstr)
- font.fontstr = cext_estrdup(BLITZ_FONT);
- blitz_loadfont(&blz, &font);
-
- if((p = getenv("WMII_NORMCOLORS")))
- cext_strlcpy(normcolor.colstr, p, sizeof(normcolor.colstr));
- if(strlen(normcolor.colstr) != 23)
- cext_strlcpy(normcolor.colstr, BLITZ_NORMCOLORS, sizeof(normcolor.colstr));
- blitz_loadcolor(&blz, &normcolor);
-
- if((p = getenv("WMII_SELCOLORS")))
- cext_strlcpy(selcolor.colstr, p, sizeof(selcolor.colstr));
- if(strlen(selcolor.colstr) != 23)
- cext_strlcpy(selcolor.colstr, BLITZ_SELCOLORS, sizeof(selcolor.colstr));
- blitz_loadcolor(&blz, &selcolor);
+ /* style */
+ loadcolors(dpy, screen, &brush, BGCOLOR, FGCOLOR, BORDERCOLOR);
+ loadfont(dpy, &brush.font, FONT);