[gnome-weather] Tweaks tweaks tweaks



commit 35a0e62d1c2c45712704abaea3353f988a373ec9
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Thu Jul 31 15:17:26 2014 +0200

    Tweaks tweaks tweaks

 data/application.css |    2 +-
 data/city.ui         |    5 +++--
 src/app/city.js      |    4 ++--
 src/app/forecast.js  |    4 +++-
 4 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/data/application.css b/data/application.css
index 367da2b..00ae4e4 100644
--- a/data/application.css
+++ b/data/application.css
@@ -45,7 +45,7 @@
 #weather-page-content-view.weather-showers,
 #weather-page-content-view.weather-showers-scattered {
     background-image: url("weather-showers.jpg");
-    color: rgba(255,255,255,0.8);
+    color: rgba(255,255,255,1.0);
 }
 
 #weather-page-content-view.weather-snow {
diff --git a/data/city.ui b/data/city.ui
index f8e63c3..e1c3411 100644
--- a/data/city.ui
+++ b/data/city.ui
@@ -21,9 +21,10 @@
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="halign">center</property>
-                <property name="valign">center</property>
+                <property name="valign">start</property>
                 <property name="hexpand">True</property>
                 <property name="vexpand">True</property>
+                <property name="margin-top">50</property>
                 <property name="margin-start">50</property>
                 <property name="margin-end">20</property>
                 <property name="row_spacing">32</property>
@@ -150,7 +151,7 @@
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
                         <property name="vscrollbar_policy">never</property>
-                        <property name="min_content_width">360</property>
+                        <property name="min_content_width">332</property>
                         <property name="margin-start">32</property>
                         <property name="margin-end">32</property>
                         <child>
diff --git a/src/app/city.js b/src/app/city.js
index c17b2d4..ec931a7 100644
--- a/src/app/city.js
+++ b/src/app/city.js
@@ -104,7 +104,7 @@ const WeatherWidget = new Lang.Class({
                 this._rightButton.set_sensitive(true);
 
             this._start = new Date().getTime();
-            this._end = this._start + 700;
+            this._end = this._start + 328;
             this._tickId = this._forecastGrid.add_tick_callback(Lang.bind(this, this._animate));
         }));
 
@@ -117,7 +117,7 @@ const WeatherWidget = new Lang.Class({
                 this._leftButton.set_sensitive(true);
 
             this._start = new Date().getTime();
-            this._end = this._start + 700;
+            this._end = this._start + 328;
             this._tickId = this._forecastGrid.add_tick_callback(Lang.bind(this, this._animate));
         }));
 
diff --git a/src/app/forecast.js b/src/app/forecast.js
index f850762..1257445 100644
--- a/src/app/forecast.js
+++ b/src/app/forecast.js
@@ -40,7 +40,7 @@ const ForecastBox = new Lang.Class({
         this._settings = new Gio.Settings({ schema_id: 'org.gnome.desktop.interface' });
 
         this._grid = new Gtk.Grid({ orientation: Gtk.Orientation.HORIZONTAL,
-                                    column_spacing: 32,
+                                    column_spacing: 18,
                                     row_spacing: 6,
                                     margin_top: 12,
                                     margin_bottom: 12,
@@ -136,6 +136,8 @@ const ForecastBox = new Lang.Class({
 
         let image = new Gtk.Image({ icon_name: info.get_symbolic_icon_name(),
                                     pixel_size: 32,
+                                    margin_start: 10,
+                                    margin_end: 10,
                                     use_fallback: true,
                                     visible: true });
         this._grid.attach(image, col, 1, 1, 1);


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