- if (!read_appearance(db, inst,
- "window.active.title.bg", theme->app_hilite_bg,
- FALSE))
- set_default_appearance(theme->app_hilite_bg);
- if (!read_appearance(db, inst,
- "window.active.label.bg", theme->app_hilite_label,
- TRUE))
- set_default_appearance(theme->app_hilite_label);
- else if (theme->app_hilite_label->surface.grad == RR_SURFACE_PARENTREL) {
- if (!read_appearance(db, inst,
- "window.active.title.bg",
- theme->app_hilite_label,
- FALSE))
- set_default_appearance(theme->app_hilite_label);
- }
- if (!read_appearance(db, inst,
- "window.inactive.title.bg", theme->app_unhilite_bg,
- FALSE))
- set_default_appearance(theme->app_unhilite_bg);
- if (!read_appearance(db, inst,
- "window.inactive.label.bg", theme->app_unhilite_label,
- TRUE))
- set_default_appearance(theme->app_unhilite_label);
- else if (theme->app_unhilite_label->surface.grad == RR_SURFACE_PARENTREL) {
- if (!read_appearance(db, inst,
- "window.inactive.title.bg",
- theme->app_unhilite_label,
- FALSE))
- set_default_appearance(theme->app_unhilite_label);
- }
-
+ theme->app_hilite_bg = RrAppearanceCopy(theme->a_focused_title);
+ theme->app_hilite_label = RrAppearanceCopy(theme->a_focused_label);
+ if (theme->a_focused_label->surface.grad != RR_SURFACE_PARENTREL)
+ theme->app_hilite_fg = RrAppearanceCopy(theme->a_focused_label);
+ else
+ theme->app_hilite_fg = RrAppearanceCopy(theme->a_focused_title);
+ theme->app_unhilite_bg = RrAppearanceCopy(theme->a_unfocused_title);
+ theme->app_unhilite_label = RrAppearanceCopy(theme->a_unfocused_label);
+ if (theme->a_unfocused_label->surface.grad != RR_SURFACE_PARENTREL)
+ theme->app_unhilite_fg = RrAppearanceCopy(theme->a_unfocused_label);
+ else
+ theme->app_unhilite_fg = RrAppearanceCopy(theme->a_unfocused_title);