[gnome-calendar] month-cell: don't enbold overflow label



commit a5e733f7053c336acd3b5c49fedf96a9648d2fda
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Oct 7 11:27:56 2017 -0300

    month-cell: don't enbold overflow label
    
    Only the day label should be made bold.

 data/theme/gtk-styles.css |   24 ++++++------------------
 data/ui/month-cell.ui     |    3 +++
 2 files changed, 9 insertions(+), 18 deletions(-)
---
diff --git a/data/theme/gtk-styles.css b/data/theme/gtk-styles.css
index 1197659..a5f75ee 100644
--- a/data/theme/gtk-styles.css
+++ b/data/theme/gtk-styles.css
@@ -428,18 +428,11 @@ monthcell {
        transition: background-color 200ms;
 }
 
-monthcell:selected {
-    font-weight: bold;
-    background-color: alpha(@theme_selected_bg_color, 0.1);
-}
+monthcell:selected { background-color: alpha(@theme_selected_bg_color, 0.1); }
+monthcell:selected label.day-label { font-weight: bold; }
 
-monthcell.today {
-    background-color: alpha(@theme_selected_bg_color, 0.25);
-}
-
-monthcell:selected.today {
-    background-color: alpha(@theme_selected_bg_color, 0.33);
-}
+monthcell.today { background-color: alpha(@theme_selected_bg_color, 0.25); }
+monthcell:selected.today { background-color: alpha(@theme_selected_bg_color, 0.33); }
 
 monthcell.out-of-month {
     background-color: alpha(@theme_bg_color, 0.4);
@@ -455,13 +448,8 @@ monthcell:hover:not(.out-of-month) {
     transition: background-color 200ms;
 }
 
-monthcell:dir(ltr):nth-child(7n + 1) {
-       border-left-width: 0;
-}
-
-monthcell:dir(rtl):nth-child(7n + 1) {
-       border-right-width: 0;
-}
+monthcell:dir(ltr):nth-child(7n + 1) { border-left-width: 0; }
+monthcell:dir(rtl):nth-child(7n + 1) { border-right-width: 0; }
 
 monthcell button {
     padding: 0 4px;
diff --git a/data/ui/month-cell.ui b/data/ui/month-cell.ui
index b7b5681..fa4aaf2 100644
--- a/data/ui/month-cell.ui
+++ b/data/ui/month-cell.ui
@@ -49,6 +49,9 @@
                       <object class="GtkLabel" id="day_label">
                         <property name="visible">True</property>
                         <property name="can-focus">False</property>
+                        <style>
+                          <class name="day-label" />
+                        </style>
                       </object>
                       <packing>
                         <property name="pack-type">end</property>


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