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
=== modified file 'music-app.qml'
--- music-app.qml 2014-12-17 02:11:48 +0000
+++ music-app.qml 2014-12-19 22:51:34 +0000
@@ -1109,20 +1109,30 @@
11091109
1110 Column {1110 Column {
1111 anchors.centerIn: parent1111 anchors.centerIn: parent
1112 spacing: units.gu(2)
1113 width: parent.width
11121114
1113 Label {1115 Label {
1114 anchors.horizontalCenter: parent.horizontalCenter
1115 color: styleMusic.libraryEmpty.labelColor1116 color: styleMusic.libraryEmpty.labelColor
1117 elide: Text.ElideRight
1116 fontSize: "large"1118 fontSize: "large"
1117 font.bold: true1119 font.bold: true
1120 horizontalAlignment: Text.AlignHCenter
1121 maximumLineCount: 2
1118 text: i18n.tr("No music found")1122 text: i18n.tr("No music found")
1123 width: parent.width
1124 wrapMode: Text.WordWrap
1119 }1125 }
11201126
1121 Label {1127 Label {
1122 anchors.horizontalCenter: parent.horizontalCenter
1123 color: styleMusic.libraryEmpty.labelColor1128 color: styleMusic.libraryEmpty.labelColor
1129 elide: Text.ElideRight
1124 fontSize: "medium"1130 fontSize: "medium"
1131 horizontalAlignment: Text.AlignHCenter
1132 maximumLineCount: 2
1125 text: i18n.tr("Please import music")1133 text: i18n.tr("Please import music")
1134 width: parent.width
1135 wrapMode: Text.WordWrap
1126 }1136 }
1127 }1137 }
1128 }1138 }
@@ -1139,20 +1149,30 @@
11391149
1140 Column {1150 Column {
1141 anchors.centerIn: parent1151 anchors.centerIn: parent
1152 spacing: units.gu(2)
1153 width: parent.width
11421154
1143 Label {1155 Label {
1144 anchors.horizontalCenter: parent.horizontalCenter
1145 color: styleMusic.libraryEmpty.labelColor1156 color: styleMusic.libraryEmpty.labelColor
1157 elide: Text.ElideRight
1146 fontSize: "large"1158 fontSize: "large"
1147 font.bold: true1159 font.bold: true
1160 horizontalAlignment: Text.AlignHCenter
1161 maximumLineCount: 2
1148 text: i18n.tr("No playlists found")1162 text: i18n.tr("No playlists found")
1163 width: parent.width
1164 wrapMode: Text.WordWrap
1149 }1165 }
11501166
1151 Label {1167 Label {
1152 anchors.horizontalCenter: parent.horizontalCenter
1153 color: styleMusic.libraryEmpty.labelColor1168 color: styleMusic.libraryEmpty.labelColor
1169 elide: Text.ElideRight
1154 fontSize: "medium"1170 fontSize: "medium"
1171 horizontalAlignment: Text.AlignHCenter
1172 maximumLineCount: 2
1155 text: i18n.tr("Click the + to create a playlist")1173 text: i18n.tr("Click the + to create a playlist")
1174 width: parent.width
1175 wrapMode: Text.WordWrap
1156 }1176 }
1157 }1177 }
1158 }1178 }
@@ -1169,20 +1189,30 @@
11691189
1170 Column {1190 Column {
1171 anchors.centerIn: parent1191 anchors.centerIn: parent
1192 spacing: units.gu(2)
1193 width: parent.width
11721194
1173 Label {1195 Label {
1174 anchors.horizontalCenter: parent.horizontalCenter
1175 color: styleMusic.libraryEmpty.labelColor1196 color: styleMusic.libraryEmpty.labelColor
1197 elide: Text.ElideRight
1176 fontSize: "large"1198 fontSize: "large"
1177 font.bold: true1199 font.bold: true
1200 horizontalAlignment: Text.AlignHCenter
1201 maximumLineCount: 2
1178 text: i18n.tr("No recent albums or playlists found")1202 text: i18n.tr("No recent albums or playlists found")
1203 width: parent.width
1204 wrapMode: Text.WordWrap
1179 }1205 }
11801206
1181 Label {1207 Label {
1182 anchors.horizontalCenter: parent.horizontalCenter
1183 color: styleMusic.libraryEmpty.labelColor1208 color: styleMusic.libraryEmpty.labelColor
1209 elide: Text.ElideRight
1184 fontSize: "medium"1210 fontSize: "medium"
1211 horizontalAlignment: Text.AlignHCenter
1212 maximumLineCount: 2
1185 text: i18n.tr("Play some music to see your favorites")1213 text: i18n.tr("Play some music to see your favorites")
1214 width: parent.width
1215 wrapMode: Text.WordWrap
1186 }1216 }
1187 }1217 }
1188 }1218 }

Subscribers

People subscribed via source and target branches