+ if (!FIND(color, L("menu","active","text","primary"),
+ &theme->menu_selected_color, NULL))
+ theme->menu_selected_color = RrColorNew(inst, 0, 0, 0);
+ if (!FIND(color, L("window","active","label","text","shadow","primary"),
+ &theme->title_focused_shadow_color,
+ &theme->title_focused_shadow_alpha))
+ {
+ theme->title_focused_shadow_color = RrColorNew(inst, 0, 0, 0);
+ theme->title_focused_shadow_alpha = 50;
+ }
+ if (!FIND(color, L("osd","text","shadow","primary"),
+ &theme->osd_shadow_color, &theme->osd_shadow_alpha))
+ {
+ theme->osd_shadow_color =
+ RrColorNew(inst, theme->title_focused_shadow_color->r,
+ theme->title_focused_shadow_color->g,
+ theme->title_focused_shadow_color->b);
+ theme->osd_shadow_alpha = theme->title_focused_shadow_alpha;
+ }
+ if (!FIND(color, L("window","inactive","label","text","shadow","primary"),
+ &theme->title_unfocused_shadow_color,
+ &theme->title_unfocused_shadow_alpha))
+ {
+ theme->title_unfocused_shadow_color = RrColorNew(inst, 0, 0, 0);
+ theme->title_unfocused_shadow_alpha = 50;
+ }
+ if (!FIND(color, L("menu","title","text","shadow","primary"),
+ &theme->menu_title_shadow_color,
+ &theme->menu_title_shadow_alpha))
+ {
+ theme->menu_title_shadow_color = RrColorNew(inst, 0, 0, 0);
+ theme->menu_title_shadow_alpha = 50;
+ }
+ if (!FIND(color, L("menu","inactive","shadow","primary"),
+ &theme->menu_text_normal_shadow_color,
+ &theme->menu_text_normal_shadow_alpha))
+ {
+ theme->menu_text_normal_shadow_color = RrColorNew(inst, 0, 0, 0);
+ theme->menu_text_normal_shadow_alpha = 50;
+ }
+ if (!FIND(color, L("menu","active","text","shadow","primary"),
+ &theme->menu_text_selected_shadow_color,
+ &theme->menu_text_selected_shadow_alpha))
+ {
+ theme->menu_text_selected_shadow_color = RrColorNew(inst, 0, 0, 0);
+ theme->menu_text_selected_shadow_alpha = 50;
+ }
+ if (!FIND(color, L("menu","disabled","shadow","primary"),
+ &theme->menu_text_disabled_shadow_color,
+ &theme->menu_text_disabled_shadow_alpha))
+ {
+ theme->menu_text_disabled_shadow_color =
+ RrColorNew(inst, theme->menu_text_normal_shadow_color->r,
+ theme->menu_text_normal_shadow_color->g,
+ theme->menu_text_normal_shadow_color->b);
+ theme->menu_text_disabled_shadow_alpha =
+ theme->menu_text_normal_shadow_alpha;
+ }
+
+ /* load the image masks */
+ if (read_mask(&ps, "max.xbm", &theme->max_mask)) {
+ if (!read_mask(&ps, "max_pressed.xbm", &theme->max_pressed_mask))
+ theme->max_pressed_mask = RrPixmapMaskCopy(theme->max_mask);
+ if (!read_mask(&ps, "max_toggled.xbm", &theme->max_toggled_mask))
+ theme->max_toggled_mask =
+ RrPixmapMaskCopy(theme->max_pressed_mask);
+ if (!read_mask(&ps, "max_toggled_pressed.xbm",
+ &theme->max_toggled_pressed_mask))
+ theme->max_toggled_pressed_mask =
+ RrPixmapMaskCopy(theme->max_toggled_mask);
+ if (!read_mask(&ps, "max_toggled_hover.xbm",
+ &theme->max_toggled_hover_mask))
+ theme->max_toggled_hover_mask =
+ RrPixmapMaskCopy(theme->max_toggled_mask);
+ if (!read_mask(&ps, "max_disabled.xbm", &theme->max_disabled_mask))
+ theme->max_disabled_mask = RrPixmapMaskCopy(theme->max_mask);
+ if (!read_mask(&ps, "max_hover.xbm", &theme->max_hover_mask))
+ theme->max_hover_mask = RrPixmapMaskCopy(theme->max_mask);