[gnome-control-center/gbsneto/region-redesign: 8/10] region: Various small improvements to CcFormatChooser




commit 9fa5fa8d6e390f1453debff1d03e2e83f211d58c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Feb 5 17:49:31 2022 -0300

    region: Various small improvements to CcFormatChooser

 panels/region/cc-format-chooser.c  |  1 +
 panels/region/cc-format-chooser.ui | 28 +++++-----------------------
 2 files changed, 6 insertions(+), 23 deletions(-)
---
diff --git a/panels/region/cc-format-chooser.c b/panels/region/cc-format-chooser.c
index 7a4c731ee..c713a5a32 100644
--- a/panels/region/cc-format-chooser.c
+++ b/panels/region/cc-format-chooser.c
@@ -247,6 +247,7 @@ region_widget_new (CcFormatChooser *self,
         gtk_list_box_row_set_child (GTK_LIST_BOX_ROW (row), box);
 
         check = gtk_image_new_from_icon_name ("object-select-symbolic");
+        gtk_widget_set_halign (check, GTK_ALIGN_START);
         gtk_widget_set_hexpand (check, TRUE);
         gtk_widget_set_opacity (check, 0.0);
         gtk_box_append (GTK_BOX (box), check);
diff --git a/panels/region/cc-format-chooser.ui b/panels/region/cc-format-chooser.ui
index 5dfe44c95..022af60e1 100644
--- a/panels/region/cc-format-chooser.ui
+++ b/panels/region/cc-format-chooser.ui
@@ -65,24 +65,10 @@
             <signal name="notify::fold" handler="format_chooser_leaflet_fold_changed_cb" 
object="CcFormatChooser" swapped="yes"/>
             <child>
               <object class="GtkBox" id="region_box">
-                <property name="margin-top">18</property>
                 <property name="vexpand">True</property>
+                <property name="hexpand">True</property>
                 <property name="orientation">vertical</property>
 
-                <child>
-                  <object class="GtkLabel">
-                    <property name="margin-start">18</property>
-                    <property name="margin-end">18</property>
-                    <property name="label" translatable="yes">Choose the format for numbers, dates and 
currencies. Changes take effect on next login.</property>
-                    <property name="wrap">True</property>
-                    <property name="max-width-chars">32</property>
-                    <property name="xalign">0.0</property>
-                    <style>
-                      <class name="dim-label" />
-                    </style>
-                  </object>
-                </child>
-
                 <!-- Language search -->
                 <child>
                   <object class="GtkSearchEntry" id="region_filter_entry">
@@ -139,7 +125,6 @@
                             <!-- Common formats list -->
                             <child>
                               <object class="GtkListBox" id="common_region_listbox">
-                                <property name="vexpand">True</property>
                                 <property name="margin-bottom">24</property>
                                 <property name="selection-mode">none</property>
                                 <signal name="row-activated" handler="row_activated" 
object="CcFormatChooser" swapped="yes" />
@@ -239,10 +224,8 @@
             <!-- Format preview -->
             <child>
               <object class="GtkBox" id="preview_box">
+                <property name="hexpand">False</property>
                 <property name="orientation">vertical</property>
-                <style>
-                  <class name="view" />
-                </style>
                 <child>
                   <object class="GtkLabel">
                     <property name="margin_top">24</property>
@@ -251,10 +234,9 @@
                     <property name="hexpand">True</property>
                     <property name="xalign">0</property>
                     <property name="label" translatable="yes">Preview</property>
-                    <attributes>
-                      <attribute name="weight" value="bold"/>
-                      <attribute name="scale" value="1.18" />
-                    </attributes>
+                    <style>
+                      <class name="title-3" />
+                    </style>
                   </object>
                 </child>
                 <child>


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