[gnome-weather] ui: Unify setting margins and spacing



commit e8276f50a1b176d7cea8fe5d31ff82f48131b2fa
Author: Vitaly Dyachkov <obyknovenius me com>
Date:   Tue Feb 16 17:41:45 2021 +0100

    ui: Unify setting margins and spacing

 data/application.css      | 4 ----
 data/weather-widget.ui    | 5 ++---
 src/app/dailyForecast.js  | 2 --
 src/app/hourlyForecast.js | 2 --
 4 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/data/application.css b/data/application.css
index 292573e..9b678e4 100644
--- a/data/application.css
+++ b/data/application.css
@@ -1,7 +1,3 @@
-#conditions-grid {
-    margin: 20px;
-}
-
 #places-label {
     font-weight: bold;
 }
diff --git a/data/weather-widget.ui b/data/weather-widget.ui
index 95e3f09..900266e 100644
--- a/data/weather-widget.ui
+++ b/data/weather-widget.ui
@@ -24,6 +24,8 @@
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="orientation">vertical</property>
+                <property name="margin">18</property>
+                <property name="spacing">18</property>
                 <child>
                   <object class="GtkGrid" id="inner-grid">
                     <property name="name">conditions-grid</property>
@@ -153,7 +155,6 @@
                   <object class="GtkOverlay" id="forecast-overlay">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
-                    <property name="margin_bottom">24</property>
                     <child>
                       <object class="GtkStack" id="forecastStack">
                         <property name="visible">True</property>
@@ -286,8 +287,6 @@
                   <object class="GtkGrid">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
-                    <property name="margin_start">18</property>
-                    <property name="margin_bottom">20</property>
                     <property name="row_spacing">8</property>
                     <child>
                       <object class="GtkLabel" id="updatedTimeLabel">
diff --git a/src/app/dailyForecast.js b/src/app/dailyForecast.js
index 9599f9d..efbc464 100644
--- a/src/app/dailyForecast.js
+++ b/src/app/dailyForecast.js
@@ -29,8 +29,6 @@ var DailyForecastFrame = GObject.registerClass(class DailyForecastFrame extends
     _init(params) {
         super._init(Object.assign({
             halign: Gtk.Align.START,
-            margin_start: 20,
-            margin_end: 20,
             shadow_type: Gtk.ShadowType.IN,
             name: 'daily-forecast-frame',
         }, params));
diff --git a/src/app/hourlyForecast.js b/src/app/hourlyForecast.js
index 8f52815..f12ae80 100644
--- a/src/app/hourlyForecast.js
+++ b/src/app/hourlyForecast.js
@@ -33,8 +33,6 @@ var HourlyForecastFrame = GObject.registerClass(class ForecastFrame extends Gtk.
     _init(params) {
         super._init(Object.assign({
             halign: Gtk.Align.START,
-            margin_start: 20,
-            margin_end: 20,
             shadow_type: Gtk.ShadowType.IN,
             name: 'hourly-forecast-frame',
         }, params));


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