summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-12 05:42:57 +0000
committerDana Jansens <danakj@orodu.net>2003-09-12 05:42:57 +0000
commit6fc8e1784e9dffd9624f7a8d6516b9d925067866 (patch)
treee81b08374669bcd10683b1eb8f2d430125942700 /render
parentcee67e17005f1ece4f06af507e6d6317fff14d81 (diff)
handle parentrel app labels, by using the title's texture instead
Diffstat (limited to 'render')
-rw-r--r--render/theme.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/render/theme.c b/render/theme.c
index 8c348441..e61974e6 100644
--- a/render/theme.c
+++ b/render/theme.c
@@ -478,6 +478,13 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name)
"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))
@@ -486,6 +493,14 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name)
"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);
+ }
+
/* read buttons textures */
if (!read_appearance(db, inst,