[gnome-weather/wip/cdavis/daily-style-adjustments: 2/3] day-entry: Use colors for temperature label




commit 647460792b7af43dd5bafe6d50852721562b123c
Author: Christopher Davis <brainblasted disroot org>
Date:   Wed Nov 25 20:24:34 2020 -0800

    day-entry: Use colors for temperature label
    
    The latest mockups make use of color for the high
    and low labels. This commit adds that bit of color.
    
    Related to https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/103

 data/application.css | 5 +++++
 data/day-entry.ui    | 6 ++++++
 2 files changed, 11 insertions(+)
---
diff --git a/data/application.css b/data/application.css
index 444e7c6..f7c2b6d 100644
--- a/data/application.css
+++ b/data/application.css
@@ -54,6 +54,11 @@
     color: #c89009;
 }
 
+.forecast-low-temperature-label {
+    font-weight: bold;
+    color: #2174d9;
+}
+
 @define-color temp_chart_background_color @theme_base_color;
 @define-color temp_chart_fill_color rgba(248, 228, 92, 0.5);
 @define-color temp_chart_stroke_color rgba(246, 211, 45, 1.0);
diff --git a/data/day-entry.ui b/data/day-entry.ui
index 920bfb5..ba7925c 100644
--- a/data/day-entry.ui
+++ b/data/day-entry.ui
@@ -353,6 +353,9 @@
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="label">18°</property>
+            <style>
+              <class name="forecast-temperature-label"/>
+            </style>
           </object>
         </child>
         <child>
@@ -360,6 +363,9 @@
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="label">9°</property>
+            <style>
+              <class name="forecast-low-temperature-label"/>
+            </style>
           </object>
         </child>
       </object>


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