[gnome-clocks] Use different css classes for the time labels



commit 765954756ef3e17a5dbce642a5a53ea131509aaa
Author: Paolo Borelli <pborelli gnome org>
Date:   Fri Aug 16 18:11:31 2013 +0200

    Use different css classes for the time labels
    
    This gives us more freedom in each panel

 data/css/gnome-clocks.css |   12 +++++++++---
 data/ui/alarm.ui          |    2 +-
 data/ui/stopwatch.ui      |    2 +-
 data/ui/timer.ui          |    6 +++---
 data/ui/world.ui          |    6 +++---
 5 files changed, 17 insertions(+), 11 deletions(-)
---
diff --git a/data/css/gnome-clocks.css b/data/css/gnome-clocks.css
index cdf8da8..e596c5f 100644
--- a/data/css/gnome-clocks.css
+++ b/data/css/gnome-clocks.css
@@ -98,11 +98,12 @@
     background-image: none;
 }
 
-.clocks-time-label {
-    font-size: 48px;
+.clocks-standalone-label,
+.clocks-ringing-label {
+    font-size: 64px;
 }
 
-.clocks-secondary-time-label {
+.clocks-secondary-standalone-label {
     font-size: 18px;
 }
 
@@ -118,6 +119,11 @@
     font-size: 48px;
 }
 
+.clocks-stopwatch-label,
+.clocks-timer-label {
+    font-size: 48px;
+}
+
 .clocks-go {
     background-image: linear-gradient(to bottom,
                                       @clocks_go_color_a,
diff --git a/data/ui/alarm.ui b/data/ui/alarm.ui
index ec66be8..213374e 100644
--- a/data/ui/alarm.ui
+++ b/data/ui/alarm.ui
@@ -56,7 +56,7 @@
         <property name="halign">center</property>
         <property name="valign">center</property>
         <style>
-          <class name="clocks-time-label"/>
+          <class name="clocks-ringing-label"/>
         </style>
       </object>
       <packing>
diff --git a/data/ui/stopwatch.ui b/data/ui/stopwatch.ui
index 9c87b0c..b767a3b 100644
--- a/data/ui/stopwatch.ui
+++ b/data/ui/stopwatch.ui
@@ -27,7 +27,7 @@
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <style>
-                  <class name="clocks-time-label"/>
+                  <class name="clocks-stopwatch-label"/>
                 </style>
               </object>
               <packing>
diff --git a/data/ui/timer.ui b/data/ui/timer.ui
index 124fac8..2bdd71c 100644
--- a/data/ui/timer.ui
+++ b/data/ui/timer.ui
@@ -81,7 +81,7 @@
                 <property name="can_focus">False</property>
                 <property name="label">∶</property>
                 <style>
-                  <class name="clocks-time-label"/>
+                  <class name="clocks-timer-label"/>
                 </style>
               </object>
               <packing>
@@ -120,7 +120,7 @@
                 <property name="can_focus">False</property>
                 <property name="label">∶</property>
                 <style>
-                  <class name="clocks-time-label"/>
+                  <class name="clocks-timer-label"/>
                 </style>
               </object>
               <packing>
@@ -219,7 +219,7 @@
             <property name="halign">center</property>
             <property name="valign">center</property>
             <style>
-              <class name="clocks-time-label"/>
+              <class name="clocks-timer-label"/>
             </style>
           </object>
           <packing>
diff --git a/data/ui/world.ui b/data/ui/world.ui
index a681911..b05dd78 100644
--- a/data/ui/world.ui
+++ b/data/ui/world.ui
@@ -72,7 +72,7 @@
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <style>
-              <class name="clocks-time-label"/>
+              <class name="clocks-standalone-label"/>
             </style>
           </object>
           <packing>
@@ -87,7 +87,7 @@
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <style>
-              <class name="clocks-secondary-time-label"/>
+              <class name="clocks-secondary-standalone-label"/>
             </style>
           </object>
           <packing>
@@ -113,7 +113,7 @@
         <property name="margin_bottom">24</property>
         <property name="column_spacing">12</property>
         <style>
-          <class name="clocks-secondary-time-label"/>
+          <class name="clocks-secondary-standalone-label"/>
         </style>
         <child>
           <object class="GtkLabel" id="label3">


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