[gnome-themes-standard] adwaita: don't use custom code to render background-image assets



commit f066b124a2ab2b803a6e7aaa4adf58f0ce4e451a
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Jun 10 13:48:26 2011 -0400

    adwaita: don't use custom code to render background-image assets

 src/adwaita_engine.c                   |   14 +++-----------
 themes/Adwaita/gtk-3.0/gtk-widgets.css |   13 +++++++++++++
 2 files changed, 16 insertions(+), 11 deletions(-)
---
diff --git a/src/adwaita_engine.c b/src/adwaita_engine.c
index a2ae83c..3c4e450 100644
--- a/src/adwaita_engine.c
+++ b/src/adwaita_engine.c
@@ -266,12 +266,8 @@ adwaita_engine_render_check (GtkThemingEngine *engine,
       return;
     }
 
-  res = adwaita_render_from_assets_common (engine, cr,
-                                           x, y + 2.0, width, height);
-
-  if (!res)
-    GTK_THEMING_ENGINE_CLASS (adwaita_engine_parent_class)->render_check
-      (engine, cr, x, y, width, height);
+  GTK_THEMING_ENGINE_CLASS (adwaita_engine_parent_class)->render_background
+    (engine, cr, x, y, width, height);
 }
 
 static void
@@ -326,11 +322,7 @@ adwaita_engine_render_option (GtkThemingEngine *engine,
       return;
     }
 
-  res = adwaita_render_from_assets_common (engine, cr,
-                                           x, y + 2.0, width, height);
-
-  if (!res)
-    GTK_THEMING_ENGINE_CLASS (adwaita_engine_parent_class)->render_option
+  GTK_THEMING_ENGINE_CLASS (adwaita_engine_parent_class)->render_background
       (engine, cr, x, y, width, height);
 }
 
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 869db57..b3203b6 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -680,6 +680,19 @@ GtkTreeMenu .menuitem * {
     color: @theme_selected_fg_color;
 }
 
+/****************
+ * Radiobuttons *
+ ****************/
+
+.radio,
+.check {
+    background-color: alpha(@theme_base_color, 0.0);
+    border-width: 0;
+    border-style: none;
+
+    /* background-image defined in -assets variant */
+}
+
 /************
  * Toolbars *
  ************/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]