[gnome-calendar/gnome-3-18] theme: drop .views CSS class



commit 8a8ea38b8a467e10514de3f401e00e15a200d726
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sun May 8 14:45:57 2016 -0300

    theme: drop .views CSS class
    
    The default class for content viewers in Gtk+ is .view and
    ideally provided by the theme. Not only that, but it provides
    the exact same functionality of ours, but in a way that is
    overridable for theme designers.
    
    Fix this issue by removing the class from out CSS.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=765664

 data/theme/gtk-styles.css |    6 ------
 data/ui/window.ui         |    5 +----
 2 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/data/theme/gtk-styles.css b/data/theme/gtk-styles.css
index b411897..bad22a7 100644
--- a/data/theme/gtk-styles.css
+++ b/data/theme/gtk-styles.css
@@ -1,11 +1,5 @@
 @define-color event_shadow_color alpha(black, 0.2);
 
-.views {
-    /* background color of every view */
-    background-color: @theme_base_color;
-    background-image: none;
-}
-
 .nav-button {
     background-color: transparent;
     background-image: none;
diff --git a/data/ui/window.ui b/data/ui/window.ui
index 1926dd0..d546855 100644
--- a/data/ui/window.ui
+++ b/data/ui/window.ui
@@ -50,7 +50,7 @@
                 <property name="transition_type">crossfade</property>
                 <signal name="notify::visible-child" handler="view_changed" object="GcalWindow" 
swapped="no"/>
                 <style>
-                  <class name="views"/>
+                  <class name="view"/>
                 </style>
                 <child>
                   <object class="GcalMonthView" id="month_view">
@@ -278,9 +278,6 @@
         </child>
       </object>
     </child>
-    <style>
-      <class name="views"/>
-    </style>
   </template>
   <object class="GcalSearchView" id="search_view">
     <property name="visible" bind-source="search_bar" bind-property="search-mode-enabled" 
bind-flags="default | sync-create" />


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