set the shadow colors/alphas in the appearances
authorDana Jansens <danakj@orodu.net>
Mon, 26 Mar 2007 03:18:30 +0000 (03:18 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 26 Mar 2007 03:18:30 +0000 (03:18 +0000)
render/theme.c

index 88c09ccb302d4caa01fc5948e839eae812b82da2..13a62cfd06ab283e65c72f0043db6c3d07980b01 100644 (file)
@@ -671,7 +671,7 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name,
             theme->osd_hilite_label->texture[0].data.text.shadow_offset_x = i;
             theme->osd_hilite_label->texture[0].data.text.shadow_offset_y = i;
         }
-        if (i && (p = strstr(str, "shadowtint=")))
+        if ((p = strstr(str, "shadowtint=")))
         {
             i = parse_inline_number(p + strlen("shadowtint="));
             j = (i > 0 ? 0 : 255);
@@ -689,6 +689,15 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name,
         }
     }
 
+    theme->a_focused_label->texture[0].data.text.shadow_color =
+        theme->title_focused_shadow_color;
+    theme->a_focused_label->texture[0].data.text.shadow_alpha =
+        theme->title_focused_shadow_alpha;
+    theme->osd_hilite_label->texture[0].data.text.shadow_color =
+        theme->osd_shadow_color;
+    theme->osd_hilite_label->texture[0].data.text.shadow_alpha =
+        theme->osd_shadow_alpha;
+
     theme->a_unfocused_label->texture[0].type = RR_TEXTURE_TEXT;
     theme->a_unfocused_label->texture[0].data.text.justify = winjust;
     theme->a_unfocused_label->texture[0].data.text.font =
@@ -708,7 +717,7 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name,
             theme->a_unfocused_label->texture[0].data.text.shadow_offset_x = i;
             theme->a_unfocused_label->texture[0].data.text.shadow_offset_y = i;
         }
-        if (i && (p = strstr(str, "shadowtint=")))
+        if ((p = strstr(str, "shadowtint=")))
         {
             i = parse_inline_number(p + strlen("shadowtint="));
             j = (i > 0 ? 0 : 255);
@@ -722,6 +731,10 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name,
         }
     }
 
+    theme->a_unfocused_label->texture[0].data.text.shadow_color =
+        theme->title_unfocused_shadow_color;
+    theme->a_unfocused_label->texture[0].data.text.shadow_alpha =
+        theme->title_unfocused_shadow_alpha;
 
     theme->a_menu_title->texture[0].type = RR_TEXTURE_TEXT;
     theme->a_menu_title->texture[0].data.text.justify = mtitlejust;
@@ -740,7 +753,7 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name,
             theme->a_menu_title->texture[0].data.text.shadow_offset_x = i;
             theme->a_menu_title->texture[0].data.text.shadow_offset_y = i;
         }
-        if (i && (p = strstr(str, "shadowtint=")))
+        if ((p = strstr(str, "shadowtint=")))
         {
             i = parse_inline_number(p + strlen("shadowtint="));
             j = (i > 0 ? 0 : 255);
@@ -754,6 +767,10 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name,
         }
     }
 
+    theme->a_menu_title->texture[0].data.text.shadow_color =
+        theme->menu_title_shadow_color;
+    theme->a_menu_title->texture[0].data.text.shadow_alpha =
+        theme->menu_title_shadow_alpha;
 
     theme->a_menu_text_normal->texture[0].type =
         theme->a_menu_text_disabled->texture[0].type = 
@@ -794,7 +811,7 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name,
             theme->a_menu_text_selected->
                 texture[0].data.text.shadow_offset_y = i;
         }
-        if (i && (p = strstr(str, "shadowtint=")))
+        if ((p = strstr(str, "shadowtint=")))
         {
             i = parse_inline_number(p + strlen("shadowtint="));
             j = (i > 0 ? 0 : 255);
@@ -816,6 +833,19 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name,
         }
     }
 
+    theme->a_menu_text_normal->texture[0].data.text.shadow_color =
+        theme->menu_text_normal_shadow_color;
+    theme->a_menu_text_normal->texture[0].data.text.shadow_alpha =
+        theme->menu_text_normal_shadow_alpha;
+    theme->a_menu_text_selected->texture[0].data.text.shadow_color =
+        theme->menu_text_selected_shadow_color;
+    theme->a_menu_text_selected->texture[0].data.text.shadow_alpha =
+        theme->menu_text_selected_shadow_alpha;
+    theme->a_menu_text_disabled->texture[0].data.text.shadow_color =
+        theme->menu_text_disabled_shadow_color;
+    theme->a_menu_text_disabled->texture[0].data.text.shadow_alpha =
+        theme->menu_text_disabled_shadow_alpha;
+
     theme->a_disabled_focused_max->texture[0].type = 
         theme->a_disabled_unfocused_max->texture[0].type = 
         theme->a_hover_focused_max->texture[0].type =