[gnome-software] details: Align package details as per latest mockups
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] details: Align package details as per latest mockups
- Date: Tue, 25 Feb 2014 15:04:37 +0000 (UTC)
commit 00e9b2d13b16be53385e561c798d447593438047
Author: Kalev Lember <kalevlember gmail com>
Date: Fri Feb 21 18:53:35 2014 +0100
details: Align package details as per latest mockups
This makes the details section wider and aligns the two columns of
information as per latest mockups. The width of the columns and the
headings is now controlled by two size groups.
https://bugzilla.gnome.org/show_bug.cgi?id=724669
src/gnome-software.ui | 49 ++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 38 insertions(+), 11 deletions(-)
---
diff --git a/src/gnome-software.ui b/src/gnome-software.ui
index 9c51ae9..1b03c66 100644
--- a/src/gnome-software.ui
+++ b/src/gnome-software.ui
@@ -1665,7 +1665,6 @@
<object class="GtkGrid" id="grid_details_details">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="halign">center</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
<property name="row-homogeneous">True</property>
@@ -1673,7 +1672,7 @@
<object class="GtkLabel" id="label_details_version_title">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">1</property>
+ <property name="xalign">0</property>
<property name="label" translatable="yes">Version</property>
<style>
<class name="dim-label"/>
@@ -1690,6 +1689,7 @@
<object class="GtkLabel" id="label_details_version_value">
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="label">0.12.3</property>
<property name="selectable">True</property>
@@ -1708,7 +1708,7 @@
<object class="GtkLabel" id="label_details_updated_title">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">1</property>
+ <property name="xalign">0</property>
<property name="label" translatable="yes">Updated</property>
<style>
<class name="dim-label"/>
@@ -1725,6 +1725,7 @@
<object class="GtkLabel" id="label_details_updated_value">
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="label">May 12, 2012</property>
<property name="selectable">True</property>
@@ -1743,7 +1744,7 @@
<object class="GtkLabel" id="label_details_category_title">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">1</property>
+ <property name="xalign">0</property>
<property name="label" translatable="yes">Category</property>
<style>
<class name="dim-label"/>
@@ -1760,6 +1761,7 @@
<object class="GtkLabel" id="label_details_category_value">
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="label">Photos & Video</property>
<property name="ellipsize">end</property>
@@ -1780,7 +1782,7 @@
<object class="GtkLabel" id="label_details_origin_title">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">1</property>
+ <property name="xalign">0</property>
<property name="label" translatable="yes">Source</property>
<style>
<class name="dim-label"/>
@@ -1797,6 +1799,7 @@
<object class="GtkLabel" id="label_details_origin_value">
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="label">Upstream</property>
<property name="ellipsize">end</property>
@@ -1817,9 +1820,8 @@
<object class="GtkLabel" id="label_details_licence_title">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">1</property>
+ <property name="xalign">0</property>
<property name="label" translatable="yes">Licence</property>
- <property name="margin_start">42</property>
<style>
<class name="dim-label"/>
</style>
@@ -1835,6 +1837,7 @@
<object class="GtkLabel" id="label_details_licence_value">
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="label">GPL</property>
<property name="ellipsize">end</property>
@@ -1854,9 +1857,8 @@
<object class="GtkLabel" id="label_details_size_title">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">1</property>
+ <property name="xalign">0</property>
<property name="label" translatable="yes">Size</property>
- <property name="margin_start">42</property>
<style>
<class name="dim-label"/>
</style>
@@ -1872,6 +1874,7 @@
<object class="GtkLabel" id="label_details_size_value">
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="label">30 MB</property>
<property name="selectable">True</property>
@@ -1890,9 +1893,8 @@
<object class="GtkLabel" id="label_details_developer_title">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">1</property>
+ <property name="xalign">0</property>
<property name="label" translatable="yes">Developer</property>
- <property name="margin_start">42</property>
<style>
<class name="dim-label"/>
</style>
@@ -1908,6 +1910,7 @@
<object class="GtkLabel" id="label_details_developer_value">
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="label">Yorba</property>
<property name="ellipsize">end</property>
@@ -2837,4 +2840,28 @@
</object>
</child>
</object>
+ <object class="GtkSizeGroup" id="sizegroup_details_title">
+ <property name="ignore_hidden">True</property>
+ <widgets>
+ <widget name="label_details_version_title"/>
+ <widget name="label_details_updated_title"/>
+ <widget name="label_details_category_title"/>
+ <widget name="label_details_origin_title"/>
+ <widget name="label_details_licence_title"/>
+ <widget name="label_details_size_title"/>
+ <widget name="label_details_developer_title"/>
+ </widgets>
+ </object>
+ <object class="GtkSizeGroup" id="sizegroup_details_value">
+ <property name="ignore_hidden">True</property>
+ <widgets>
+ <widget name="label_details_version_value"/>
+ <widget name="label_details_updated_value"/>
+ <widget name="label_details_category_value"/>
+ <widget name="label_details_origin_value"/>
+ <widget name="label_details_licence_value"/>
+ <widget name="label_details_size_value"/>
+ <widget name="label_details_developer_value"/>
+ </widgets>
+ </object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]