}
/* load the font stuff */
- if (!read_string(db, "window.title.xftfont", &font_str))
+ if (!read_string(db, "window.focus.font", &font_str))
font_str = "arial,sans:bold:pixelsize=10:shadow=y:shadowtint=50";
- if (!(theme->winfont = RrFontOpen(inst, font_str))) {
+ if (!(theme->winfont_focused = RrFontOpen(inst, font_str))) {
RrThemeFree(theme);
return NULL;
}
- theme->winfont_height = RrFontHeight(theme->winfont);
+ theme->winfont_height = RrFontHeight(theme->winfont_focused);
+
+ if (!read_string(db, "window.unfocus.font", &font_str))
+ /* font_str will already be set to the last one */;
+
+ if (!(theme->winfont_unfocused = RrFontOpen(inst, font_str))) {
+ RrThemeFree(theme);
+ return NULL;
+ }
+ theme->winfont_height = MAX(theme->winfont_height,
+ RrFontHeight(theme->winfont_unfocused));
winjust = RR_JUSTIFY_LEFT;
if (read_string(db, "window.justify", &str)) {
winjust = RR_JUSTIFY_CENTER;
}
- if (!read_string(db, "menu.title.xftfont", &font_str))
+ if (!read_string(db, "menu.title.font", &font_str))
font_str = "arial,sans:bold:pixelsize=12:shadow=y";
if (!(theme->mtitlefont = RrFontOpen(inst, font_str))) {
mtitlejust = RR_JUSTIFY_CENTER;
}
- if (!read_string(db, "menu.frame.xftfont", &font_str))
+ if (!read_string(db, "menu.frame.font", &font_str))
font_str = "arial,sans:bold:pixelsize=11:shadow=y";
if (!(theme->mfont = RrFontOpen(inst, font_str))) {
"menu.frame.textColor", &theme->menu_color))
theme->menu_color = RrColorNew(inst, 0xff, 0xff, 0xff);
if (!read_color(db, inst,
- "menu.bullet.picColor", &theme->menu_color))
+ "menu.bullet.picColor", &theme->menu_bullet_color))
theme->menu_bullet_color = RrColorNew(inst, 0, 0, 0);
if (!read_color(db, inst,
"menu.frame.disableColor", &theme->menu_disabled_color))
theme->a_focused_label->texture[0].data.text.justify = winjust;
theme->app_hilite_label->texture[0].data.text.justify = RR_JUSTIFY_LEFT;
theme->a_focused_label->texture[0].data.text.font =
- theme->app_hilite_label->texture[0].data.text.font = theme->winfont;
+ theme->app_hilite_label->texture[0].data.text.font =
+ theme->winfont_focused;
theme->a_focused_label->texture[0].data.text.color =
theme->app_hilite_label->texture[0].data.text.color =
theme->title_focused_color;
theme->a_unfocused_label->texture[0].data.text.justify = winjust;
theme->app_unhilite_label->texture[0].data.text.justify = RR_JUSTIFY_LEFT;
theme->a_unfocused_label->texture[0].data.text.font =
- theme->app_unhilite_label->texture[0].data.text.font = theme->winfont;
+ theme->app_unhilite_label->texture[0].data.text.font =
+ theme->winfont_unfocused;
theme->a_unfocused_label->texture[0].data.text.color =
theme->app_unhilite_label->texture[0].data.text.color =
theme->title_unfocused_color;
RrPixmapMaskFree(theme->close_pressed_mask);
RrPixmapMaskFree(theme->menu_bullet_mask);
- RrFontClose(theme->winfont);
+ RrFontClose(theme->winfont_focused);
+ RrFontClose(theme->winfont_unfocused);
RrFontClose(theme->mtitlefont);
RrFontClose(theme->mfont);