]> Dogcows Code - chaz/openbox/commitdiff
handle parentrel app labels, by using the title's texture instead
authorDana Jansens <danakj@orodu.net>
Fri, 12 Sep 2003 05:42:57 +0000 (05:42 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 12 Sep 2003 05:42:57 +0000 (05:42 +0000)
render/theme.c

index 8c348441b5c1e7fc95b53ee1af2d31e1ca85a5f9..e61974e691448791c5d4a12e6429ae5357efbf26 100644 (file)
@@ -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,
This page took 0.02293 seconds and 4 git commands to generate.