Merge lp:~vthompson/music-app/wrap-empty-state-text into lp:music-app/remix

Proposed by Victor Thompson
Status: Merged
Approved by: Andrew Hayzen
Approved revision: 768
Merged at revision: 767
Proposed branch: lp:~vthompson/music-app/wrap-empty-state-text
Merge into: lp:music-app/remix
Diff against target: 102 lines (+36/-6)
1 file modified
music-app.qml (+36/-6)
To merge this branch: bzr merge lp:~vthompson/music-app/wrap-empty-state-text
Reviewer Review Type Date Requested Status
Andrew Hayzen Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+245248@code.launchpad.net

Commit message

* Wrap text used in empty states.
* Add spacing between Labels in the Column.

Description of the change

This change wraps the text used in the empty states. Translated text can sometimes be rather long, so each of these Labels should allow word wrapping.

To post a comment you must log in.
Revision history for this message
Victor Thompson (vthompson) wrote :

This is what the change looks like in German: http://i.imgur.com/08Hds4n.png

I suggest we add spacing of around 2 GU to the column holding the labels though: http://i.imgur.com/gqQFyon.png

Andrew, could I get your opinion on the matter? :)

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
768. By Victor Thompson

* Add spacing between Labels in the Column.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Looks good in various languages now :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'music-app.qml'
2--- music-app.qml 2014-12-17 02:11:48 +0000
3+++ music-app.qml 2014-12-19 22:51:34 +0000
4@@ -1109,20 +1109,30 @@
5
6 Column {
7 anchors.centerIn: parent
8+ spacing: units.gu(2)
9+ width: parent.width
10
11 Label {
12- anchors.horizontalCenter: parent.horizontalCenter
13 color: styleMusic.libraryEmpty.labelColor
14+ elide: Text.ElideRight
15 fontSize: "large"
16 font.bold: true
17+ horizontalAlignment: Text.AlignHCenter
18+ maximumLineCount: 2
19 text: i18n.tr("No music found")
20+ width: parent.width
21+ wrapMode: Text.WordWrap
22 }
23
24 Label {
25- anchors.horizontalCenter: parent.horizontalCenter
26 color: styleMusic.libraryEmpty.labelColor
27+ elide: Text.ElideRight
28 fontSize: "medium"
29+ horizontalAlignment: Text.AlignHCenter
30+ maximumLineCount: 2
31 text: i18n.tr("Please import music")
32+ width: parent.width
33+ wrapMode: Text.WordWrap
34 }
35 }
36 }
37@@ -1139,20 +1149,30 @@
38
39 Column {
40 anchors.centerIn: parent
41+ spacing: units.gu(2)
42+ width: parent.width
43
44 Label {
45- anchors.horizontalCenter: parent.horizontalCenter
46 color: styleMusic.libraryEmpty.labelColor
47+ elide: Text.ElideRight
48 fontSize: "large"
49 font.bold: true
50+ horizontalAlignment: Text.AlignHCenter
51+ maximumLineCount: 2
52 text: i18n.tr("No playlists found")
53+ width: parent.width
54+ wrapMode: Text.WordWrap
55 }
56
57 Label {
58- anchors.horizontalCenter: parent.horizontalCenter
59 color: styleMusic.libraryEmpty.labelColor
60+ elide: Text.ElideRight
61 fontSize: "medium"
62+ horizontalAlignment: Text.AlignHCenter
63+ maximumLineCount: 2
64 text: i18n.tr("Click the + to create a playlist")
65+ width: parent.width
66+ wrapMode: Text.WordWrap
67 }
68 }
69 }
70@@ -1169,20 +1189,30 @@
71
72 Column {
73 anchors.centerIn: parent
74+ spacing: units.gu(2)
75+ width: parent.width
76
77 Label {
78- anchors.horizontalCenter: parent.horizontalCenter
79 color: styleMusic.libraryEmpty.labelColor
80+ elide: Text.ElideRight
81 fontSize: "large"
82 font.bold: true
83+ horizontalAlignment: Text.AlignHCenter
84+ maximumLineCount: 2
85 text: i18n.tr("No recent albums or playlists found")
86+ width: parent.width
87+ wrapMode: Text.WordWrap
88 }
89
90 Label {
91- anchors.horizontalCenter: parent.horizontalCenter
92 color: styleMusic.libraryEmpty.labelColor
93+ elide: Text.ElideRight
94 fontSize: "medium"
95+ horizontalAlignment: Text.AlignHCenter
96+ maximumLineCount: 2
97 text: i18n.tr("Play some music to see your favorites")
98+ width: parent.width
99+ wrapMode: Text.WordWrap
100 }
101 }
102 }

Subscribers

People subscribed via source and target branches