[gnome-clocks] Rework background color styling



commit 07db3f2cb122454101d572361b50deae43b9baad
Author: Paolo Borelli <pborelli gnome org>
Date:   Fri Jul 11 22:24:50 2014 +0200

    Rework background color styling
    
    Based on a patch by Lapo Calamandrei

 data/css/gnome-clocks.css |   16 +++++++++++++++-
 data/ui/window.ui         |    4 ----
 src/alarm.vala            |    3 ---
 src/widgets.vala          |    2 +-
 src/world.vala            |    3 ---
 5 files changed, 16 insertions(+), 12 deletions(-)
---
diff --git a/data/css/gnome-clocks.css b/data/css/gnome-clocks.css
index 85383e5..25d8ddb 100644
--- a/data/css/gnome-clocks.css
+++ b/data/css/gnome-clocks.css
@@ -1,3 +1,17 @@
+ClocksWindow > .frame {
+    background-color: mix(@theme_fg_color, @theme_bg_color, 0.95);
+    box-shadow: inset 0 5px 2px -6px black;
+}
+
+ClocksWindow > .frame:backdrop {
+    background-color: mix(@theme_unfocused_fg_color, @theme_unfocused_bg_color, 0.95);
+    box-shadow: none;
+}
+
+.clocks-tiles-view {
+    background-color: transparent;
+}
+
 .clocks-digital-renderer {
     background-color: transparent;
 }
@@ -120,7 +134,7 @@
 }
 
 .clocks-analog-frame.trough {
-    color: mix(@theme_fg_color, @theme_bg_color, 0.9);
+    color: mix(@theme_fg_color, @theme_bg_color, 0.85);
 }
 
 .clocks-analog-frame.progress {
diff --git a/data/ui/window.ui b/data/ui/window.ui
index c7a931f..d3f9812 100644
--- a/data/ui/window.ui
+++ b/data/ui/window.ui
@@ -25,10 +25,6 @@
         <property name="shadow_type">none</property>
         <property name="vexpand">True</property>
         <property name="hexpand">True</property>
-        <style>
-          <class name="view"/>
-          <class name="content-view"/>
-        </style>
         <child>
           <object class="GtkStack" id="stack">
             <property name="visible">True</property>
diff --git a/src/alarm.vala b/src/alarm.vala
index dc714ce..6d6c88f 100644
--- a/src/alarm.vala
+++ b/src/alarm.vala
@@ -492,9 +492,6 @@ private class RingingPanel : Gtk.EventBox {
     private Gtk.Button snooze_button;
 
     public RingingPanel () {
-        get_style_context ().add_class ("view");
-        get_style_context ().add_class ("content-view");
-
         var builder = Utils.load_ui ("alarm.ui");
         var grid = builder.get_object ("ringing_panel") as Gtk.Grid;
         time_label = builder.get_object ("time_label") as Gtk.Label;
diff --git a/src/widgets.vala b/src/widgets.vala
index 4b30953..44b6034 100644
--- a/src/widgets.vala
+++ b/src/widgets.vala
@@ -288,7 +288,7 @@ private class IconView : Gtk.IconView {
 
         model = new Gtk.ListStore (Column.COLUMNS, typeof (bool), typeof (ContentItem));
 
-        get_style_context ().add_class ("content-view");
+        get_style_context ().add_class ("clocks-tiles-view");
         set_item_padding (0);
         set_margin (12);
 
diff --git a/src/world.vala b/src/world.vala
index 52b498a..f4624a4 100644
--- a/src/world.vala
+++ b/src/world.vala
@@ -230,9 +230,6 @@ private class StandalonePanel : Gtk.EventBox {
     private Gtk.Label sunset_label;
 
     public StandalonePanel () {
-        get_style_context ().add_class ("view");
-        get_style_context ().add_class ("content-view");
-
         var builder = Utils.load_ui ("world.ui");
 
         var grid = builder.get_object ("standalone_content") as Gtk.Grid;


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