[gnome-control-center] region: Make the rows adaptive
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] region: Make the rows adaptive
- Date: Tue, 19 Feb 2019 13:45:54 +0000 (UTC)
commit f02255090dd85a86706abd32ee45c94871477dff
Author: Adrien Plazas <kekun plazas laposte net>
Date: Mon Feb 18 18:48:31 2019 +0100
region: Make the rows adaptive
Align the sizing of the rows on the one of HdyActionRow and ellipsize
the labels to make the panel better fit in narrow windows.
panels/region/cc-region-panel.ui | 52 +++++++++++++++++++++-------------------
1 file changed, 27 insertions(+), 25 deletions(-)
---
diff --git a/panels/region/cc-region-panel.ui b/panels/region/cc-region-panel.ui
index ea980b714..5d4277488 100644
--- a/panels/region/cc-region-panel.ui
+++ b/panels/region/cc-region-panel.ui
@@ -49,14 +49,17 @@
<child>
<object class="GtkBox">
<property name="visible">True</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="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_start">20</property>
- <property name="margin_end">20</property>
- <property name="margin_top">18</property>
- <property name="margin_bottom">18</property>
+ <property name="margin_bottom">8</property>
+ <property name="margin_top">8</property>
+ <property name="ellipsize">end</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">_Language</property>
<property name="use_underline">True</property>
@@ -68,10 +71,8 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="margin_start">20</property>
- <property name="margin_end">20</property>
- <property name="margin_top">18</property>
- <property name="margin_bottom">18</property>
+ <property name="margin_bottom">8</property>
+ <property name="margin_top">8</property>
</object>
</child>
</object>
@@ -82,13 +83,14 @@
<child>
<object class="GtkBox">
<property name="visible">True</property>
+ <property name="margin_start">12</property>
+ <property name="margin_end">12</property>
+ <property name="spacing">12</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
- <property name="margin_start">20</property>
- <property name="margin_end">20</property>
- <property name="margin_top">12</property>
- <property name="margin_bottom">12</property>
+ <property name="margin_bottom">8</property>
+ <property name="margin_top">8</property>
<property name="xalign">0</property>
<property name="hexpand">True</property>
<property name="wrap">True</property>
@@ -105,10 +107,8 @@
<child>
<object class="GtkButton" id="restart_button">
<property name="visible">True</property>
- <property name="margin_start">20</property>
- <property name="margin_end">20</property>
- <property name="margin_top">12</property>
- <property name="margin_bottom">12</property>
+ <property name="margin_bottom">8</property>
+ <property name="margin_top">8</property>
<property name="valign">end</property>
<property name="label" translatable="yes">Restart…</property>
<style>
@@ -132,14 +132,16 @@
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</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="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_start">20</property>
- <property name="margin_end">20</property>
- <property name="margin_top">18</property>
- <property name="margin_bottom">18</property>
+ <property name="margin_bottom">8</property>
+ <property name="margin_top">8</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">_Formats</property>
<property name="use_underline">True</property>
@@ -151,10 +153,8 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="margin_start">20</property>
- <property name="margin_end">20</property>
- <property name="margin_top">18</property>
- <property name="margin_bottom">18</property>
+ <property name="margin_bottom">8</property>
+ <property name="margin_top">8</property>
</object>
</child>
</object>
@@ -277,7 +277,9 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
- <property name="margin">18</property>
+ <property name="height_request">50</property>
+ <property name="margin_start">12</property>
+ <property name="margin_end">12</property>
<property name="icon-name">list-add-symbolic</property>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]