[glade] GladeDesignLayout: updated to new class css name API



commit ce3d607bef6f22602d227952ed1a10dadbcce421
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Mon Mar 14 23:24:37 2016 -0300

    GladeDesignLayout: updated to new class css name API

 gladeui/glade-design-layout.c   |    2 ++
 gladeui/glade-design-layout.css |   13 +++++++------
 2 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/gladeui/glade-design-layout.c b/gladeui/glade-design-layout.c
index 65ed20b..28d9336 100644
--- a/gladeui/glade-design-layout.c
+++ b/gladeui/glade-design-layout.c
@@ -2050,6 +2050,8 @@ glade_design_layout_class_init (GladeDesignLayoutClass * klass)
                                                    NULL, NULL));
 
   /* Setup Custom CSS */
+  gtk_widget_class_set_css_name (widget_class, "glade-design-layout");
+
   css_provider = gtk_css_provider_new ();
   gtk_css_provider_load_from_resource (css_provider, "/org/gnome/gladeui/glade-design-layout.css");
 
diff --git a/gladeui/glade-design-layout.css b/gladeui/glade-design-layout.css
index e77fdd3..166f691 100644
--- a/gladeui/glade-design-layout.css
+++ b/gladeui/glade-design-layout.css
@@ -21,25 +21,26 @@
  * 
  */
 
-GladeDesignLayout {
-  background-color: @theme_selected_bg_color;
+glade-design-layout {
+  background: none;
   border: 4px solid @theme_selected_bg_color;
   color: @theme_selected_fg_color;
   border-radius: 4px 4px 0px 4px;
 }
 
-GladeDesignLayout.handle {
+glade-design-layout.handle {
+  background-color: @theme_selected_bg_color;
   border-radius: 0px 0px 4px 4px;
 }
 
-GladeDesignLayout.selection {
+glade-design-layout.selection {
   border: 2px solid @theme_selected_bg_color;
   border-radius: 0px;
   background-color:transparent;
   background-image: -gtk-gradient (radial,
                                    center center, 0,
                                    center center, 1,
-                                   from (alpha(@theme_selected_bg_color, 0)),
-                                   to   (alpha(@theme_selected_bg_color, .8)));
+                                   from (alpha(@theme_selected_bg_color, .08)),
+                                   to   (alpha(@theme_selected_bg_color, .50)));
 }
 


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