fix some theme colors/display
authorDana Jansens <danakj@orodu.net>
Tue, 3 Jun 2003 17:20:43 +0000 (17:20 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 3 Jun 2003 17:20:43 +0000 (17:20 +0000)
openbox/framerender.c
render2/theme.c

index 3c9c618c5ff4e1ce460334dad23fe1b645d11700..9df97782a15e98f0a8b749a580afceb1b861602c 100644 (file)
@@ -57,6 +57,8 @@ void framerender_frame(Frame *self)
                           &ob_theme->title_color_f : &ob_theme->title_color),
                          self->client->title);
 
+        if (self->max_x >= 0)
+            RrSurfaceCopy(self->s_max, m);
         if (self->icon_x >= 0) {
             Icon *icon;
 
index 803fcc1d7b20b787ddca550106c07f2ea46da5c1..72c836af0bd877d8f0a9c6b27d047723166fc8c1 100644 (file)
@@ -67,7 +67,7 @@ struct RrTheme *RrThemeLoad(struct RrInstance *inst, const char *name)
     RrColorSet(&pri, 0.71, 0.7, 0.68, 1);
     RrPlanarSet(theme->max_p, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
                 &pri, NULL, 0, NULL);
-    RrPlanarSet(theme->max_p, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
+    RrPlanarSet(theme->max_p_f, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
                 &pri, NULL, 0, NULL);
 
     RrColorSet(&pri, 0.9, 0.91, 0.9, 1);
@@ -79,7 +79,7 @@ struct RrTheme *RrThemeLoad(struct RrInstance *inst, const char *name)
     RrColorSet(&pri, 0.71, 0.7, 0.68, 1);
     RrPlanarSet(theme->iconify_p, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
                 &pri, NULL, 0, NULL);
-    RrPlanarSet(theme->iconify_p, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
+    RrPlanarSet(theme->iconify_p_f, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
                 &pri, NULL, 0, NULL);
 
     RrColorSet(&pri, 0.9, 0.91, 0.9, 1);
@@ -91,7 +91,7 @@ struct RrTheme *RrThemeLoad(struct RrInstance *inst, const char *name)
     RrColorSet(&pri, 0.71, 0.7, 0.68, 1);
     RrPlanarSet(theme->close_p, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
                 &pri, NULL, 0, NULL);
-    RrPlanarSet(theme->close_p, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
+    RrPlanarSet(theme->close_p_f, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
                 &pri, NULL, 0, NULL);
 
     RrColorSet(&pri, 0.9, 0.91, 0.9, 1);
@@ -103,7 +103,7 @@ struct RrTheme *RrThemeLoad(struct RrInstance *inst, const char *name)
     RrColorSet(&pri, 0.71, 0.7, 0.68, 1);
     RrPlanarSet(theme->desk_p, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
                 &pri, NULL, 0, NULL);
-    RrPlanarSet(theme->desk_p, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
+    RrPlanarSet(theme->desk_p_f, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
                 &pri, NULL, 0, NULL);
 
     RrColorSet(&pri, 0.9, 0.91, 0.9, 1);
@@ -115,7 +115,7 @@ struct RrTheme *RrThemeLoad(struct RrInstance *inst, const char *name)
     RrColorSet(&pri, 0.71, 0.7, 0.68, 1);
     RrPlanarSet(theme->shade_p, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
                 &pri, NULL, 0, NULL);
-    RrPlanarSet(theme->shade_p, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
+    RrPlanarSet(theme->shade_p_f, RR_PLANAR_SOLID, RR_SUNKEN_OUTER,
                 &pri, NULL, 0, NULL);
 
     theme->frame = RrSurfaceNewProto(RR_SURFACE_PLANAR, 0);
@@ -138,15 +138,15 @@ struct RrTheme *RrThemeLoad(struct RrInstance *inst, const char *name)
     theme->label = RrSurfaceNewProto(RR_SURFACE_PLANAR, 1);
     theme->label_f = RrSurfaceNewProto(RR_SURFACE_PLANAR, 1);
 
-    RrColorSet(&pri, 0.30, 0.34, 0.65, 1);
-    RrColorSet(&sec, 0.35, 0.43, 0.75, 1);
-    RrColorSet(&bor, 0, 0, 0, 1);
-    RrPlanarSet(theme->title, RR_PLANAR_VERTICAL, RR_BEVEL_NONE,
-                &pri, &sec, 1, &bor);
     RrColorSet(&pri, 0.70, 0.70, 0.68, 1);
     RrColorSet(&sec, 0.75, 0.73, 0.71, 1);
+    RrColorSet(&bor, 0, 0, 0, 1);
+    RrPlanarSet(theme->label, RR_PLANAR_VERTICAL, RR_BEVEL_NONE,
+                &pri, &sec, 1, &bor);
+    RrColorSet(&pri, 0.30, 0.34, 0.65, 1);
+    RrColorSet(&sec, 0.35, 0.43, 0.75, 1);
     RrColorSet(&bor, 0.42, 0.41, 0.42, 1);
-    RrPlanarSet(theme->title_f, RR_PLANAR_SOLID, RR_BEVEL_NONE,
+    RrPlanarSet(theme->label_f, RR_PLANAR_SOLID, RR_BEVEL_NONE,
                 &pri, &sec, 1, &bor);