[gnome-control-center] night-light: minor adjustments to dialog layout
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] night-light: minor adjustments to dialog layout
- Date: Mon, 7 Jan 2019 14:18:05 +0000 (UTC)
commit bc68377e776ccbeb790635e31dd82f638a1b2e6a
Author: Jeremy Bicha <jbicha ubuntu com>
Date: Tue Dec 18 22:11:46 2018 -0500
night-light: minor adjustments to dialog layout
- Move Schedule label to its own row
- Center align "From" and "To" labels
https://gitlab.gnome.org/Teams/Design/settings-mockups/blob/master/displays/night-light.png
panels/display/cc-night-light-dialog.ui | 23 ++++++++---------------
1 file changed, 8 insertions(+), 15 deletions(-)
---
diff --git a/panels/display/cc-night-light-dialog.ui b/panels/display/cc-night-light-dialog.ui
index 86ff69576..c57bf9015 100644
--- a/panels/display/cc-night-light-dialog.ui
+++ b/panels/display/cc-night-light-dialog.ui
@@ -113,12 +113,11 @@
</object>
</child>
<child>
- <object class="GtkGrid">
+ <object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="hexpand">True</property>
- <property name="row_spacing">22</property>
- <property name="column_spacing">40</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">22</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
@@ -130,16 +129,14 @@
<attribute name="weight" value="bold"/>
</attributes>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">1</property>
- </packing>
</child>
<child>
<object class="GtkButtonBox" id="togglebutton_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="layout_style">end</property>
+ <property name="halign">fill</property>
+ <property name="hexpand">True</property>
+ <property name="layout_style">expand</property>
<child>
<object class="GtkRadioButton" id="togglebutton_automatic">
<property name="label" translatable="yes">Sunset to Sunrise</property>
@@ -193,10 +190,6 @@
<class name="linked"/>
</style>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">1</property>
- </packing>
</child>
</object>
</child>
@@ -211,7 +204,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
- <property name="valign">start</property>
+ <property name="valign">center</property>
<property name="label" translatable="yes">From</property>
<style>
<class name="dim-label"/>
@@ -422,7 +415,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
- <property name="valign">start</property>
+ <property name="valign">center</property>
<property name="margin_left">3</property>
<property name="label" translatable="yes">To</property>
<style>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]