- if (!read_color(db, inst,
- "window.button.disabled.unfocus.picColor",
- &theme->titlebut_disabled_unfocused_color))
- theme->titlebut_disabled_unfocused_color = RrColorNew(inst, 0, 0, 0);
- if (!read_color(db, inst,
- "window.button.focus.picColor",
- &theme->titlebut_focused_color))
- theme->titlebut_focused_color = RrColorNew(inst, 0, 0, 0);
- if (!read_color(db, inst,
- "window.button.unfocus.picColor",
- &theme->titlebut_unfocused_color))
- theme->titlebut_unfocused_color = RrColorNew(inst, 0xff, 0xff, 0xff);
- if (!read_color(db, inst,
- "menu.title.textColor", &theme->menu_title_color))
+ if (!FIND(color, L("window","active","buttons","pressed","image"),
+ &theme->titlebut_focused_pressed_color, NULL))
+ theme->titlebut_focused_pressed_color =
+ RrColorNew(inst,
+ theme->titlebut_focused_unpressed_color->r,
+ theme->titlebut_focused_unpressed_color->g,
+ theme->titlebut_focused_unpressed_color->b);
+ if (!FIND(color, L("window","inactive","buttons","pressed","image"),
+ &theme->titlebut_unfocused_pressed_color, NULL))
+ theme->titlebut_unfocused_pressed_color =
+ RrColorNew(inst,
+ theme->titlebut_unfocused_unpressed_color->r,
+ theme->titlebut_unfocused_unpressed_color->g,
+ theme->titlebut_unfocused_unpressed_color->b);
+ if (!FIND(color, L("window","active","buttons","disabled","image"),
+ &theme->titlebut_disabled_focused_color, NULL))
+ theme->titlebut_disabled_focused_color =
+ RrColorNew(inst, 0xff, 0xff, 0xff);
+ if (!FIND(color, L("window","inactive","buttons","disabled","image"),
+ &theme->titlebut_disabled_unfocused_color, NULL))
+ theme->titlebut_disabled_unfocused_color = RrColorNew(inst, 0, 0, 0);
+ if (!FIND(color,
+ L("window","active","buttons","hover","image"),
+ &theme->titlebut_hover_focused_color, NULL))
+ theme->titlebut_hover_focused_color =
+ RrColorNew(inst,
+ theme->titlebut_focused_unpressed_color->r,
+ theme->titlebut_focused_unpressed_color->g,
+ theme->titlebut_focused_unpressed_color->b);
+ if (!FIND(color, L("window","inactive","buttons","hover","image"),
+ &theme->titlebut_hover_unfocused_color, NULL))
+ theme->titlebut_hover_unfocused_color =
+ RrColorNew(inst,
+ theme->titlebut_unfocused_unpressed_color->r,
+ theme->titlebut_unfocused_unpressed_color->g,
+ theme->titlebut_unfocused_unpressed_color->b);
+ if (!FIND(color,
+ L("window","active","buttons","toggled-pressed","image"),
+ &theme->titlebut_toggled_focused_pressed_color, NULL))
+ theme->titlebut_toggled_focused_pressed_color =
+ RrColorNew(inst,
+ theme->titlebut_focused_pressed_color->r,
+ theme->titlebut_focused_pressed_color->g,
+ theme->titlebut_focused_pressed_color->b);
+ if (!FIND(color,
+ L("window","inactive","buttons","toggled-pressed","image"),
+ &theme->titlebut_toggled_unfocused_pressed_color, NULL))
+ theme->titlebut_toggled_unfocused_pressed_color =
+ RrColorNew(inst,
+ theme->titlebut_unfocused_pressed_color->r,
+ theme->titlebut_unfocused_pressed_color->g,
+ theme->titlebut_unfocused_pressed_color->b);
+ if (!FIND(color,
+ L("window","active","buttons","toggled-unpressed","image"),
+ &theme->titlebut_toggled_focused_unpressed_color, NULL))
+ theme->titlebut_toggled_focused_unpressed_color =
+ RrColorNew(inst,
+ theme->titlebut_focused_pressed_color->r,
+ theme->titlebut_focused_pressed_color->g,
+ theme->titlebut_focused_pressed_color->b);
+ if (!FIND(color,
+ L("window","inactive","buttons","toggled-unpressed","image"),
+ &theme->titlebut_toggled_unfocused_unpressed_color, NULL))
+ theme->titlebut_toggled_unfocused_unpressed_color =
+ RrColorNew(inst,
+ theme->titlebut_unfocused_pressed_color->r,
+ theme->titlebut_unfocused_pressed_color->g,
+ theme->titlebut_unfocused_pressed_color->b);
+ if (!FIND(color,
+ L("window","active","buttons","toggled-hover","image"),
+ &theme->titlebut_toggled_hover_focused_color, NULL))
+ theme->titlebut_toggled_hover_focused_color =
+ RrColorNew(inst,
+ theme->titlebut_toggled_focused_unpressed_color->r,
+ theme->titlebut_toggled_focused_unpressed_color->g,
+ theme->titlebut_toggled_focused_unpressed_color->b);
+ if (!FIND(color,
+ L("window","inactive","buttons","toggled-hover","image"),
+ &theme->titlebut_toggled_hover_unfocused_color, NULL))
+ theme->titlebut_toggled_hover_unfocused_color =
+ RrColorNew(inst,
+ theme->titlebut_toggled_unfocused_unpressed_color->r,
+ theme->titlebut_toggled_unfocused_unpressed_color->g,
+ theme->titlebut_toggled_unfocused_unpressed_color->b);
+ if (!FIND(color, L("menu","title","text","primary"),
+ &theme->menu_title_color, NULL))