[gnome-control-center] region: Make CcInputRow adaptive



commit e75cf5b6437be6d973030116d6d4a61b4bdfb404
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Mon Feb 18 18:46:20 2019 +0100

    region: Make CcInputRow adaptive
    
    Align the sizing of the CcInputRow on the one of HdyActionRow and
    ellipsize its labels to make it better fit narrow windows.

 panels/region/cc-input-row.ui | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/panels/region/cc-input-row.ui b/panels/region/cc-input-row.ui
index cbc99f922..c0e2ac6e2 100644
--- a/panels/region/cc-input-row.ui
+++ b/panels/region/cc-input-row.ui
@@ -15,7 +15,9 @@
         <child>
           <object class="GtkBox">
             <property name="visible">True</property>
-            <property name="border-width">12</property>
+            <property name="height_request">50</property>
+            <property name="margin_start">12</property>
+            <property name="margin_end">12</property>
             <property name="spacing">12</property>
             <child>
               <object class="GtkImage">
@@ -26,6 +28,9 @@
             <child>
               <object class="GtkLabel" id="name_label">
                 <property name="visible">True</property>
+                <property name="margin_bottom">8</property>
+                <property name="margin_top">8</property>
+                <property name="ellipsize">end</property>
                 <property name="xalign">0.0</property>
                 <property name="hexpand">True</property>
               </object>
@@ -33,6 +38,9 @@
             <child>
               <object class="GtkButton" id="settings_button">
                 <property name="visible">False</property>
+                <property name="margin_bottom">8</property>
+                <property name="margin_top">8</property>
+                <property name="valign">center</property>
                 <signal name="clicked" handler="settings_button_clicked_cb" object="CcInputRow" 
swapped="yes"/>
                 <style>
                   <class name="image-button"/>
@@ -48,6 +56,9 @@
             <child>
               <object class="GtkButton">
                 <property name="visible">True</property>
+                <property name="margin_bottom">8</property>
+                <property name="margin_top">8</property>
+                <property name="valign">center</property>
                 <signal name="clicked" handler="layout_button_clicked_cb" object="CcInputRow" swapped="yes"/>
                 <style>
                   <class name="image-button"/>
@@ -63,6 +74,9 @@
             <child>
               <object class="GtkButton" id="remove_button">
                 <property name="visible">True</property>
+                <property name="margin_bottom">8</property>
+                <property name="margin_top">8</property>
+                <property name="valign">center</property>
                 <signal name="clicked" handler="remove_button_clicked_cb" object="CcInputRow" swapped="yes"/>
                 <style>
                   <class name="image-button"/>


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