Merge lp:~seb128/ubuntu-system-settings/update-tweak-ui into lp:ubuntu-system-settings

Proposed by Sebastien Bacher
Status: Merged
Approved by: Iain Lane
Approved revision: 446
Merged at revision: 454
Proposed branch: lp:~seb128/ubuntu-system-settings/update-tweak-ui
Merge into: lp:ubuntu-system-settings
Diff against target: 90 lines (+15/-32)
2 files modified
plugins/system-update/PageComponent.qml (+14/-31)
plugins/system-update/system-update.pro (+1/-1)
To merge this branch: bzr merge lp:~seb128/ubuntu-system-settings/update-tweak-ui
Reviewer Review Type Date Requested Status
Iain Lane Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+190405@code.launchpad.net

Commit message

update: tweak a bit the UI, we don't have a description for the updates
so there is no need to keep the stacked UI, we can use one line.
Copy the icon in the source as well since it's not installed on touch.

Description of the change

update: tweak a bit the UI, we don't have a description for the updates
so there is no need to keep the stacked UI, we can use one line.
Copy the icon in the source as well since it's not installed on touch.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Some notes:

* you can test on the desktop with "sudo system-image-dbus --testing=update-manual-success" (needs system-images-dev installed)

* the "updateTitleId.height*3" is not new, it's just the height of 3 standard items (we just picked a random one as reference)

* The "Ubuntu Phone" label got replaced by the one mpt recommended (same is the about this device, : "Ubuntu <version> (r<rev>)"

445. By Sebastien Bacher

update: tweak a bit the UI, we don't have a description for the updates
so there is no need to keep the stacked UI, we can use one line.
Copy the icon in the source as well since it's not installed on touch.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Iain Lane (laney) wrote :

You forgot to install the icon

review: Needs Fixing
446. By Sebastien Bacher

install the icon as well

Revision history for this message
Sebastien Bacher (seb128) wrote :

> You forgot to install the icon

yeah, of course I did ... I'm eventually going to learn to do the things right directly rather than copying manually for testing and forgetting then...

Thanks for spotting it, should be fixed with the new commit!

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Iain Lane (laney) wrote :

Cool, looks nicer!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/system-update/PageComponent.qml'
2--- plugins/system-update/PageComponent.qml 2013-10-03 15:28:53 +0000
3+++ plugins/system-update/PageComponent.qml 2013-10-14 14:22:03 +0000
4@@ -19,6 +19,7 @@
5 */
6
7 import QtQuick 2.0
8+import QtSystemInfo 5.0
9 import SystemSettings 1.0
10 import Ubuntu.Components 0.1
11 import Ubuntu.Components.ListItems 0.1 as ListItem
12@@ -31,6 +32,10 @@
13 title: i18n.tr("Updates")
14 flickable: scrollWidget // TODO: maybe remove
15
16+ DeviceInfo {
17+ id: deviceInfo
18+ }
19+
20 // TODO: surely needs its own QML as the whole logic is here
21 UbuntuUpdatePanel {
22 id: updateBackend
23@@ -171,7 +176,7 @@
24 right: parent.right
25 margins: units.gu(2)
26 }
27- height: distribLogo.height + standardLabel.height*2 + versionId.height + subtitleId.height +
28+ height: updateTitleId.height*3 + subtitleId.height +
29 updateProgress.height + pauseDownloadButton.height + units.gu(4)
30
31 /**********************
32@@ -218,36 +223,14 @@
33 width: parent.width
34 spacing: units.gu(2)
35
36- Icon {
37- id: distribLogo
38- anchors.horizontalCenter: parent.horizontalCenter
39- width: units.gu(6)
40- height: width
41- name: "distributor-logo"
42- }
43-
44- Row {
45- width: parent.width
46-
47- Label {
48- id: standardLabel
49- width: parent.width/2
50- text: i18n.tr("Ubuntu Phone")
51- }
52-
53- Label {
54- horizontalAlignment: Text.AlignRight
55- width: parent.width/2
56- text: updateBackend.updateSize;
57- }
58- }
59-
60- ListItem.Standard {
61- id: versionId
62- // TRANSLATORS: %1 is the version of the update
63- text: i18n.tr("Version %1").arg(updateBackend.updateVersion)
64- showDivider: false
65- }
66+ ListItem.SingleValue {
67+ id: updateTitleId
68+ icon: "file:///usr/share/ubuntu/settings/system/icons/distributor-logo.png"
69+ iconFrame: false
70+ text: "Ubuntu %1 (r%2)".arg(deviceInfo.version(DeviceInfo.Os)).arg(updateBackend.updateVersion)
71+ value: updateBackend.updateSize;
72+ }
73+
74 /* TODO: list updateBackend.updateDescriptions once bug #1215586 is resolved */
75
76 ListItem.Subtitled {
77
78=== added file 'plugins/system-update/distributor-logo.png'
79Binary files plugins/system-update/distributor-logo.png 1970-01-01 00:00:00 +0000 and plugins/system-update/distributor-logo.png 2013-10-14 14:22:03 +0000 differ
80=== modified file 'plugins/system-update/system-update.pro'
81--- plugins/system-update/system-update.pro 2013-09-06 10:31:42 +0000
82+++ plugins/system-update/system-update.pro 2013-10-14 14:22:03 +0000
83@@ -12,7 +12,7 @@
84 settings.path = $${PLUGIN_MANIFEST_DIR}
85 INSTALLS += settings
86
87-image.files = settings-system-update.svg
88+image.files = settings-system-update.svg distributor-logo.png
89 image.path = $${PLUGIN_MANIFEST_DIR}/icons
90 INSTALLS += image
91

Subscribers

People subscribed via source and target branches