Merge lp:~vthompson/music-app/fixes-1308048-music-tab-cover-sizes into lp:music-app/trusty
- fixes-1308048-music-tab-cover-sizes
- Merge into trusty
Status: | Merged |
---|---|
Approved by: | Victor Thompson |
Approved revision: | 428 |
Merged at revision: | 428 |
Proposed branch: | lp:~vthompson/music-app/fixes-1308048-music-tab-cover-sizes |
Merge into: | lp:music-app/trusty |
Diff against target: |
694 lines (+339/-339) 1 file modified
MusicStart.qml (+339/-339) |
To merge this branch: | bzr merge lp:~vthompson/music-app/fixes-1308048-music-tab-cover-sizes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrew Hayzen | Approve | ||
Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve | |
Review via email: mp+215997@code.launchpad.net |
Commit message
Make cover art a bit smaller on the Music tab
Description of the change
Make cover art a bit smaller on the Music tab. Most of the diff is due to fixing spacing issues. To get a better diff execute the following after branching: bzr diff --diff-options='-w' -r425.
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
Alan Pope πΊπ§π± π¦ (popey) wrote : | # |
Tested on desktop but not on device. Can someone please confirm it's good on device?
Victor Thompson (vthompson) wrote : | # |
To expedite any opinions, this is what it looks like when the app starts [1] and after the toolbar minimizes a few seconds later [2]. I'm not sure I personally like having smaller icons on the Music tab, but I think it improves the usability issues described in the bug and also makes it easier to see the content while moving through the list quickly.
[1] http://
[2] http://
Nekhelesh Ramananthan (nik90) wrote : | # |
hmm victor how do I run this on device? When I try running it, I get org.nemomobile.
Victor Thompson (vthompson) wrote : | # |
Hi Nekhelesh, the plugins aren't packaged when the click is deployed. You'll need to do the following as root from the phone:
cp -r /usr/share/
Andrew Hayzen (ahayzen) wrote : | # |
Hey Nekhelesh,
Due to confinement we have to run the following command to copy grilo over.
cp -r /usr/share/
click.ubuntu.
(Assuming you have used click-buddy to install the music-app)
Thanks,
Andrew
On 16 April 2014 14:45, Nekhelesh Ramananthan <email address hidden> wrote:
> hmm victor how do I run this on device? When I try running it, I get
> org.nemomobile.
> --
>
> https:/
> Your team Music App Developers is requested to review the proposed merge
> of lp:~vthompson/music-app/fixes-1308048-music-tab-cover-sizes into
> lp:music-app.
>
Andrew Hayzen (ahayzen) wrote : | # |
Looks good to me, it resolves the issue of both the vertical and horizontal scrolls not being initially obvious.
Preview Diff
1 | === modified file 'MusicStart.qml' | |||
2 | --- MusicStart.qml 2014-03-27 23:44:29 +0000 | |||
3 | +++ MusicStart.qml 2014-04-16 03:22:43 +0000 | |||
4 | @@ -63,351 +63,351 @@ | |||
5 | 63 | width: mainpage.width | 63 | width: mainpage.width |
6 | 64 | height: mainpage.height | 64 | height: mainpage.height |
7 | 65 | 65 | ||
10 | 66 | contentHeight: mainView.hasRecent ? recentlyPlayed.height + recentlist.height + genres.height + genrelist.height + albums.height + albumlist.height + units.gu(3) | 66 | contentHeight: mainView.hasRecent ? recentlyPlayed.height + recentlist.height + genres.height + genrelist.height + albums.height + albumlist.height + units.gu(4) |
11 | 67 | : genres.height + genrelist.height + albums.height + albumlist.height + units.gu(2) | 67 | : genres.height + genrelist.height + albums.height + albumlist.height + units.gu(3) |
12 | 68 | contentWidth: width | 68 | contentWidth: width |
13 | 69 | 69 | ||
14 | 70 | focus: true | 70 | focus: true |
15 | 71 | 71 | ||
353 | 72 | ListItem.Standard { | 72 | ListItem.Standard { |
354 | 73 | id: recentlyPlayed | 73 | id: recentlyPlayed |
355 | 74 | text: i18n.tr("Recent") | 74 | text: i18n.tr("Recent") |
356 | 75 | visible: mainView.hasRecent | 75 | visible: mainView.hasRecent |
357 | 76 | } | 76 | } |
358 | 77 | 77 | ||
359 | 78 | ListView { | 78 | ListView { |
360 | 79 | id: recentlist | 79 | id: recentlist |
361 | 80 | anchors.top: recentlyPlayed.bottom | 80 | anchors.top: recentlyPlayed.bottom |
362 | 81 | anchors.topMargin: units.gu(1) | 81 | anchors.topMargin: units.gu(1) |
363 | 82 | width: parent.width | 82 | width: parent.width |
364 | 83 | spacing: units.gu(2) | 83 | spacing: units.gu(1) |
365 | 84 | height: units.gu(22) | 84 | height: units.gu(18) |
366 | 85 | // TODO: Update when view counts are collected | 85 | // TODO: Update when view counts are collected |
367 | 86 | model: recentModel.model | 86 | model: recentModel.model |
368 | 87 | delegate: recentDelegate | 87 | delegate: recentDelegate |
369 | 88 | header: Item { | 88 | header: Item { |
370 | 89 | id: spacer | 89 | id: spacer |
371 | 90 | width: units.gu(1) | 90 | width: units.gu(1) |
372 | 91 | } | 91 | } |
373 | 92 | footer: Item { | 92 | footer: Item { |
374 | 93 | id: clearRecent | 93 | id: clearRecent |
375 | 94 | width: units.gu(20) | 94 | width: recentlist.height - units.gu(2) |
376 | 95 | height: units.gu(20) | 95 | height: width |
377 | 96 | visible: mainView.hasRecent && !loading.visible | 96 | visible: mainView.hasRecent && !loading.visible |
378 | 97 | Button { | 97 | Button { |
379 | 98 | id: clearRecentButton | 98 | id: clearRecentButton |
380 | 99 | anchors.centerIn: parent | 99 | anchors.centerIn: parent |
381 | 100 | text: "Clear History" | 100 | text: "Clear History" |
382 | 101 | onClicked: { | 101 | onClicked: { |
383 | 102 | Library.clearRecentHistory() | 102 | Library.clearRecentHistory() |
384 | 103 | mainView.hasRecent = false | 103 | mainView.hasRecent = false |
385 | 104 | recentModel.filterRecent() | 104 | recentModel.filterRecent() |
386 | 105 | } | 105 | } |
387 | 106 | } | 106 | } |
388 | 107 | } | 107 | } |
389 | 108 | orientation: ListView.Horizontal | 108 | orientation: ListView.Horizontal |
390 | 109 | visible: mainView.hasRecent | 109 | visible: mainView.hasRecent |
391 | 110 | 110 | ||
392 | 111 | Component { | 111 | Component { |
393 | 112 | id: recentDelegate | 112 | id: recentDelegate |
394 | 113 | Item { | 113 | Item { |
395 | 114 | property string title: model.title | 114 | property string title: model.title |
396 | 115 | property string title2: model.title2 | 115 | property string title2: model.title2 |
397 | 116 | property var covers: type === "playlist" ? Playlists.getPlaylistCovers(title) : [Library.getAlbumCover(title)] | 116 | property var covers: type === "playlist" ? Playlists.getPlaylistCovers(title) : [Library.getAlbumCover(title)] |
398 | 117 | property string type: model.type | 117 | property string type: model.type |
399 | 118 | property string time: model.time | 118 | property string time: model.time |
400 | 119 | property string key: model.key | 119 | property string key: model.key |
401 | 120 | id: recentItem | 120 | id: recentItem |
402 | 121 | height: units.gu(20) | 121 | height: recentlist.height - units.gu(1) |
403 | 122 | width: units.gu(20) | 122 | width: height |
404 | 123 | CoverRow { | 123 | CoverRow { |
405 | 124 | id: recentShape | 124 | id: recentShape |
406 | 125 | anchors { | 125 | anchors { |
407 | 126 | top: parent.top | 126 | top: parent.top |
408 | 127 | left: parent.left | 127 | left: parent.left |
409 | 128 | verticalCenter: parent.verticalCenter | 128 | verticalCenter: parent.verticalCenter |
410 | 129 | } | 129 | } |
411 | 130 | count: recentItem.covers.length | 130 | count: recentItem.covers.length |
412 | 131 | size: recentItem.width | 131 | size: recentItem.width |
413 | 132 | covers: recentItem.covers | 132 | covers: recentItem.covers |
414 | 133 | spacing: units.gu(2) | 133 | spacing: units.gu(2) |
415 | 134 | } | 134 | } |
416 | 135 | UbuntuShape { // Background so can see text in current state | 135 | UbuntuShape { // Background so can see text in current state |
417 | 136 | id: albumBg2 | 136 | id: albumBg2 |
418 | 137 | anchors.bottom: parent.bottom | 137 | anchors.bottom: parent.bottom |
419 | 138 | color: styleMusic.common.black | 138 | color: styleMusic.common.black |
420 | 139 | height: units.gu(4) | 139 | height: units.gu(4) |
421 | 140 | width: parent.width | 140 | width: parent.width |
422 | 141 | } | 141 | } |
423 | 142 | Rectangle { // Background so can see text in current state | 142 | Rectangle { // Background so can see text in current state |
424 | 143 | id: albumBg | 143 | id: albumBg |
425 | 144 | anchors.bottom: parent.bottom | 144 | anchors.bottom: parent.bottom |
426 | 145 | anchors.bottomMargin: units.gu(2) | 145 | anchors.bottomMargin: units.gu(2) |
427 | 146 | color: styleMusic.common.black | 146 | color: styleMusic.common.black |
428 | 147 | height: units.gu(3) | 147 | height: units.gu(3) |
429 | 148 | width: parent.width | 148 | width: parent.width |
430 | 149 | } | 149 | } |
431 | 150 | Label { | 150 | Label { |
432 | 151 | id: albumArtist | 151 | id: albumArtist |
433 | 152 | anchors.bottom: parent.bottom | 152 | anchors.bottom: parent.bottom |
434 | 153 | anchors.bottomMargin: units.gu(3) | 153 | anchors.bottomMargin: units.gu(3) |
435 | 154 | anchors.left: parent.left | 154 | anchors.left: parent.left |
436 | 155 | anchors.leftMargin: units.gu(1) | 155 | anchors.leftMargin: units.gu(1) |
437 | 156 | anchors.right: parent.right | 156 | anchors.right: parent.right |
438 | 157 | anchors.rightMargin: units.gu(1) | 157 | anchors.rightMargin: units.gu(1) |
439 | 158 | color: styleMusic.common.white | 158 | color: styleMusic.common.white |
440 | 159 | elide: Text.ElideRight | 159 | elide: Text.ElideRight |
441 | 160 | text: title | 160 | text: title |
442 | 161 | fontSize: "small" | 161 | fontSize: "small" |
443 | 162 | } | 162 | } |
444 | 163 | Label { | 163 | Label { |
445 | 164 | id: albumLabel | 164 | id: albumLabel |
446 | 165 | anchors.left: parent.left | 165 | anchors.left: parent.left |
447 | 166 | anchors.leftMargin: units.gu(1) | 166 | anchors.leftMargin: units.gu(1) |
448 | 167 | anchors.bottom: parent.bottom | 167 | anchors.bottom: parent.bottom |
449 | 168 | anchors.bottomMargin: units.gu(1) | 168 | anchors.bottomMargin: units.gu(1) |
450 | 169 | anchors.right: parent.right | 169 | anchors.right: parent.right |
451 | 170 | anchors.rightMargin: units.gu(1) | 170 | anchors.rightMargin: units.gu(1) |
452 | 171 | color: styleMusic.nowPlaying.labelSecondaryColor | 171 | color: styleMusic.nowPlaying.labelSecondaryColor |
453 | 172 | elide: Text.ElideRight | 172 | elide: Text.ElideRight |
454 | 173 | text: title2 | 173 | text: title2 |
455 | 174 | fontSize: "x-small" | 174 | fontSize: "x-small" |
456 | 175 | } | 175 | } |
457 | 176 | MouseArea { | 176 | MouseArea { |
458 | 177 | anchors.fill: parent | 177 | anchors.fill: parent |
459 | 178 | onClicked: { | 178 | onClicked: { |
460 | 179 | if (type === "playlist") { | 179 | if (type === "playlist") { |
461 | 180 | albumTracksModel.filterPlaylistTracks(key) | 180 | albumTracksModel.filterPlaylistTracks(key) |
462 | 181 | } else { | 181 | } else { |
463 | 182 | albumTracksModel.filterAlbumTracks(title) | 182 | albumTracksModel.filterAlbumTracks(title) |
464 | 183 | } | 183 | } |
465 | 184 | 184 | ||
466 | 185 | songsSheet.line1 = title2 | 185 | songsSheet.line1 = title2 |
467 | 186 | songsSheet.line2 = title | 186 | songsSheet.line2 = title |
468 | 187 | songsSheet.covers = recentItem.covers | 187 | songsSheet.covers = recentItem.covers |
469 | 188 | PopupUtils.open(songsSheet.sheet) | 188 | PopupUtils.open(songsSheet.sheet) |
470 | 189 | songsSheet.isAlbum = (type === "album") | 189 | songsSheet.isAlbum = (type === "album") |
471 | 190 | } | 190 | } |
472 | 191 | } | 191 | } |
473 | 192 | } | 192 | } |
474 | 193 | } | 193 | } |
475 | 194 | } | 194 | } |
476 | 195 | 195 | ||
477 | 196 | ListItem.ThinDivider { | 196 | ListItem.ThinDivider { |
478 | 197 | id: genreDivider | 197 | id: genreDivider |
479 | 198 | anchors.top: mainView.hasRecent ? recentlist.bottom : parent.top | 198 | anchors.top: mainView.hasRecent ? recentlist.bottom : parent.top |
480 | 199 | } | 199 | } |
481 | 200 | ListItem.Standard { | 200 | ListItem.Standard { |
482 | 201 | id: genres | 201 | id: genres |
483 | 202 | anchors.top: genreDivider.bottom | 202 | anchors.top: genreDivider.bottom |
484 | 203 | text: i18n.tr("Genres") | 203 | text: i18n.tr("Genres") |
485 | 204 | } | 204 | } |
486 | 205 | // TODO: add music genres. frequency of play? most tracks? | 205 | // TODO: add music genres. frequency of play? most tracks? |
487 | 206 | ListView { | 206 | ListView { |
488 | 207 | id: genrelist | 207 | id: genrelist |
489 | 208 | width: parent.width | 208 | width: parent.width |
490 | 209 | anchors.top: genres.bottom | 209 | anchors.top: genres.bottom |
491 | 210 | anchors.topMargin: units.gu(1) | 210 | anchors.topMargin: units.gu(1) |
492 | 211 | spacing: units.gu(2) | 211 | spacing: units.gu(1) |
493 | 212 | height: units.gu(22) | 212 | height: units.gu(18) |
494 | 213 | model: genreModel.model | 213 | model: genreModel.model |
495 | 214 | delegate: genreDelegate | 214 | delegate: genreDelegate |
496 | 215 | header: Item { | 215 | header: Item { |
497 | 216 | id: spacer | 216 | id: spacer |
498 | 217 | width: units.gu(1) | 217 | width: units.gu(1) |
499 | 218 | } | 218 | } |
500 | 219 | orientation: ListView.Horizontal | 219 | orientation: ListView.Horizontal |
501 | 220 | 220 | ||
502 | 221 | Component { | 221 | Component { |
503 | 222 | id: genreDelegate | 222 | id: genreDelegate |
504 | 223 | Item { | 223 | Item { |
505 | 224 | property string artist: model.artist | 224 | property string artist: model.artist |
506 | 225 | property string album: model.album | 225 | property string album: model.album |
507 | 226 | property string title: model.title | 226 | property string title: model.title |
508 | 227 | property var covers: Library.getGenreCovers(model.genre) | 227 | property var covers: Library.getGenreCovers(model.genre) |
509 | 228 | property string length: model.length | 228 | property string length: model.length |
510 | 229 | property string file: model.file | 229 | property string file: model.file |
511 | 230 | property string year: model.year | 230 | property string year: model.year |
512 | 231 | property string genre: model.genre | 231 | property string genre: model.genre |
513 | 232 | 232 | ||
514 | 233 | id: genreItem | 233 | id: genreItem |
515 | 234 | objectName: "genreItemObject" | 234 | objectName: "genreItemObject" |
516 | 235 | height: units.gu(20) | 235 | height: genrelist.height - units.gu(1) |
517 | 236 | width: units.gu(20) | 236 | width: height |
518 | 237 | CoverRow { | 237 | CoverRow { |
519 | 238 | id: genreShape | 238 | id: genreShape |
520 | 239 | anchors { | 239 | anchors { |
521 | 240 | top: parent.top | 240 | top: parent.top |
522 | 241 | left: parent.left | 241 | left: parent.left |
523 | 242 | verticalCenter: parent.verticalCenter | 242 | verticalCenter: parent.verticalCenter |
524 | 243 | } | 243 | } |
525 | 244 | count: genreItem.covers.length | 244 | count: genreItem.covers.length |
526 | 245 | size: genreItem.width | 245 | size: genreItem.width |
527 | 246 | covers: genreItem.covers | 246 | covers: genreItem.covers |
528 | 247 | spacing: units.gu(2) | 247 | spacing: units.gu(2) |
529 | 248 | } | 248 | } |
530 | 249 | MouseArea { | 249 | MouseArea { |
531 | 250 | anchors.fill: parent | 250 | anchors.fill: parent |
532 | 251 | onClicked: { | 251 | onClicked: { |
533 | 252 | albumTracksModel.filterGenreTracks(genre) | 252 | albumTracksModel.filterGenreTracks(genre) |
534 | 253 | songsSheet.line1 = "Genre" | 253 | songsSheet.line1 = "Genre" |
535 | 254 | songsSheet.line2 = genre | 254 | songsSheet.line2 = genre |
536 | 255 | songsSheet.isAlbum = false | 255 | songsSheet.isAlbum = false |
537 | 256 | songsSheet.covers = covers | 256 | songsSheet.covers = covers |
538 | 257 | PopupUtils.open(songsSheet.sheet) | 257 | PopupUtils.open(songsSheet.sheet) |
539 | 258 | } | 258 | } |
540 | 259 | } | 259 | } |
541 | 260 | Rectangle { // Background so can see text in current state | 260 | Rectangle { // Background so can see text in current state |
542 | 261 | id: genreBg | 261 | id: genreBg |
543 | 262 | anchors.bottom: parent.bottom | 262 | anchors.bottom: parent.bottom |
544 | 263 | anchors.bottomMargin: units.gu(2) | 263 | anchors.bottomMargin: units.gu(2) |
545 | 264 | color: styleMusic.common.black | 264 | color: styleMusic.common.black |
546 | 265 | height: units.gu(3) | 265 | height: units.gu(3) |
547 | 266 | width: parent.width | 266 | width: parent.width |
548 | 267 | } | 267 | } |
549 | 268 | UbuntuShape { // Background so can see text in current state | 268 | UbuntuShape { // Background so can see text in current state |
550 | 269 | id: genreBg2 | 269 | id: genreBg2 |
551 | 270 | anchors.bottom: parent.bottom | 270 | anchors.bottom: parent.bottom |
552 | 271 | color: styleMusic.common.black | 271 | color: styleMusic.common.black |
553 | 272 | height: units.gu(4) | 272 | height: units.gu(4) |
554 | 273 | width: parent.width | 273 | width: parent.width |
555 | 274 | } | 274 | } |
556 | 275 | Label { | 275 | Label { |
557 | 276 | id: genreLabel | 276 | id: genreLabel |
558 | 277 | anchors.bottom: parent.bottom | 277 | anchors.bottom: parent.bottom |
559 | 278 | anchors.bottomMargin: units.gu(1) | 278 | anchors.bottomMargin: units.gu(1) |
560 | 279 | anchors.left: parent.left | 279 | anchors.left: parent.left |
561 | 280 | anchors.leftMargin: units.gu(1) | 280 | anchors.leftMargin: units.gu(1) |
562 | 281 | anchors.right: parent.right | 281 | anchors.right: parent.right |
563 | 282 | anchors.rightMargin: units.gu(1) | 282 | anchors.rightMargin: units.gu(1) |
564 | 283 | color: styleMusic.common.white | 283 | color: styleMusic.common.white |
565 | 284 | elide: Text.ElideRight | 284 | elide: Text.ElideRight |
566 | 285 | text: genre | 285 | text: genre |
567 | 286 | fontSize: "small" | 286 | fontSize: "small" |
568 | 287 | } | 287 | } |
569 | 288 | Label { | 288 | Label { |
570 | 289 | id: genreTotal | 289 | id: genreTotal |
571 | 290 | anchors.bottom: parent.bottom | 290 | anchors.bottom: parent.bottom |
572 | 291 | anchors.bottomMargin: units.gu(3) | 291 | anchors.bottomMargin: units.gu(3) |
573 | 292 | anchors.left: parent.left | 292 | anchors.left: parent.left |
574 | 293 | anchors.leftMargin: units.gu(1) | 293 | anchors.leftMargin: units.gu(1) |
575 | 294 | anchors.right: parent.right | 294 | anchors.right: parent.right |
576 | 295 | anchors.rightMargin: units.gu(1) | 295 | anchors.rightMargin: units.gu(1) |
577 | 296 | color: styleMusic.nowPlaying.labelSecondaryColor | 296 | color: styleMusic.nowPlaying.labelSecondaryColor |
578 | 297 | elide: Text.ElideRight | 297 | elide: Text.ElideRight |
579 | 298 | text: i18n.tr("%1 song", "%1 songs", model.total).arg(model.total) | 298 | text: i18n.tr("%1 song", "%1 songs", model.total).arg(model.total) |
580 | 299 | fontSize: "x-small" | 299 | fontSize: "x-small" |
581 | 300 | } | 300 | } |
582 | 301 | } | 301 | } |
583 | 302 | } | 302 | } |
584 | 303 | } | 303 | } |
585 | 304 | 304 | ||
586 | 305 | ListItem.ThinDivider { | 305 | ListItem.ThinDivider { |
587 | 306 | id: albumsDivider | 306 | id: albumsDivider |
588 | 307 | anchors.top: genrelist.bottom | 307 | anchors.top: genrelist.bottom |
589 | 308 | } | 308 | } |
590 | 309 | ListItem.Standard { | 309 | ListItem.Standard { |
591 | 310 | id: albums | 310 | id: albums |
592 | 311 | text: i18n.tr("Albums") | 311 | text: i18n.tr("Albums") |
593 | 312 | anchors.top: albumsDivider.bottom | 312 | anchors.top: albumsDivider.bottom |
594 | 313 | } | 313 | } |
595 | 314 | 314 | ||
596 | 315 | ListView { | 315 | ListView { |
597 | 316 | id: albumlist | 316 | id: albumlist |
598 | 317 | width: parent.width | 317 | width: parent.width |
599 | 318 | anchors.top: albums.bottom | 318 | anchors.top: albums.bottom |
600 | 319 | anchors.topMargin: units.gu(1) | 319 | anchors.topMargin: units.gu(1) |
601 | 320 | spacing: units.gu(2) | 320 | spacing: units.gu(1) |
602 | 321 | height: units.gu(22) | 321 | height: units.gu(18) |
603 | 322 | model: albumModel.model | 322 | model: albumModel.model |
604 | 323 | delegate: albumDelegate | 323 | delegate: albumDelegate |
605 | 324 | header: Item { | 324 | header: Item { |
606 | 325 | id: albumSpacer | 325 | id: albumSpacer |
607 | 326 | width: units.gu(1) | 326 | width: units.gu(1) |
608 | 327 | } | 327 | } |
609 | 328 | orientation: ListView.Horizontal | 328 | orientation: ListView.Horizontal |
610 | 329 | 329 | ||
611 | 330 | Component { | 330 | Component { |
612 | 331 | id: albumDelegate | 331 | id: albumDelegate |
613 | 332 | Item { | 332 | Item { |
614 | 333 | property string artist: model.artist | 333 | property string artist: model.artist |
615 | 334 | property string album: model.album | 334 | property string album: model.album |
616 | 335 | property var covers: [Library.getAlbumCover(album)] | 335 | property var covers: [Library.getAlbumCover(album)] |
617 | 336 | property string length: model.length | 336 | property string length: model.length |
618 | 337 | property string file: model.file | 337 | property string file: model.file |
619 | 338 | property string year: model.year | 338 | property string year: model.year |
620 | 339 | property string genre: model.genre | 339 | property string genre: model.genre |
621 | 340 | 340 | ||
622 | 341 | id: albumItem | 341 | id: albumItem |
623 | 342 | objectName: "albumItemObject" | 342 | objectName: "albumItemObject" |
624 | 343 | height: units.gu(20) | 343 | height: albumlist.height - units.gu(1) |
625 | 344 | width: units.gu(20) | 344 | width: height |
626 | 345 | CoverRow { | 345 | CoverRow { |
627 | 346 | id: albumShape | 346 | id: albumShape |
628 | 347 | anchors { | 347 | anchors { |
629 | 348 | top: parent.top | 348 | top: parent.top |
630 | 349 | left: parent.left | 349 | left: parent.left |
631 | 350 | verticalCenter: parent.verticalCenter | 350 | verticalCenter: parent.verticalCenter |
632 | 351 | } | 351 | } |
633 | 352 | count: albumItem.covers.length | 352 | count: albumItem.covers.length |
634 | 353 | size: albumItem.width | 353 | size: albumItem.width |
635 | 354 | covers: albumItem.covers | 354 | covers: albumItem.covers |
636 | 355 | spacing: units.gu(2) | 355 | spacing: units.gu(2) |
637 | 356 | } | 356 | } |
638 | 357 | MouseArea { | 357 | MouseArea { |
639 | 358 | anchors.fill: parent | 358 | anchors.fill: parent |
640 | 359 | onClicked: { | 359 | onClicked: { |
641 | 360 | albumTracksModel.filterAlbumTracks(album) | 360 | albumTracksModel.filterAlbumTracks(album) |
642 | 361 | songsSheet.line1 = artist | 361 | songsSheet.line1 = artist |
643 | 362 | songsSheet.line2 = album | 362 | songsSheet.line2 = album |
644 | 363 | songsSheet.isAlbum = true | 363 | songsSheet.isAlbum = true |
645 | 364 | songsSheet.covers = covers | 364 | songsSheet.covers = covers |
646 | 365 | PopupUtils.open(songsSheet.sheet) | 365 | PopupUtils.open(songsSheet.sheet) |
647 | 366 | } | 366 | } |
648 | 367 | } | 367 | } |
649 | 368 | Rectangle { // Background so can see text in current state | 368 | Rectangle { // Background so can see text in current state |
650 | 369 | id: albumBg | 369 | id: albumBg |
651 | 370 | anchors.bottom: parent.bottom | 370 | anchors.bottom: parent.bottom |
652 | 371 | anchors.bottomMargin: units.gu(2) | 371 | anchors.bottomMargin: units.gu(2) |
653 | 372 | color: styleMusic.common.black | 372 | color: styleMusic.common.black |
654 | 373 | height: units.gu(3) | 373 | height: units.gu(3) |
655 | 374 | width: parent.width | 374 | width: parent.width |
656 | 375 | } | 375 | } |
657 | 376 | UbuntuShape { // Background so can see text in current state | 376 | UbuntuShape { // Background so can see text in current state |
658 | 377 | id: albumBg2 | 377 | id: albumBg2 |
659 | 378 | anchors.bottom: parent.bottom | 378 | anchors.bottom: parent.bottom |
660 | 379 | color: styleMusic.common.black | 379 | color: styleMusic.common.black |
661 | 380 | height: units.gu(4) | 380 | height: units.gu(4) |
662 | 381 | width: parent.width | 381 | width: parent.width |
663 | 382 | } | 382 | } |
664 | 383 | Label { | 383 | Label { |
665 | 384 | id: albumLabel | 384 | id: albumLabel |
666 | 385 | anchors.bottom: parent.bottom | 385 | anchors.bottom: parent.bottom |
667 | 386 | anchors.bottomMargin: units.gu(1) | 386 | anchors.bottomMargin: units.gu(1) |
668 | 387 | anchors.left: parent.left | 387 | anchors.left: parent.left |
669 | 388 | anchors.leftMargin: units.gu(1) | 388 | anchors.leftMargin: units.gu(1) |
670 | 389 | anchors.right: parent.right | 389 | anchors.right: parent.right |
671 | 390 | anchors.rightMargin: units.gu(1) | 390 | anchors.rightMargin: units.gu(1) |
672 | 391 | color: styleMusic.nowPlaying.labelSecondaryColor | 391 | color: styleMusic.nowPlaying.labelSecondaryColor |
673 | 392 | elide: Text.ElideRight | 392 | elide: Text.ElideRight |
674 | 393 | text: artist | 393 | text: artist |
675 | 394 | fontSize: "x-small" | 394 | fontSize: "x-small" |
676 | 395 | } | 395 | } |
677 | 396 | Label { | 396 | Label { |
678 | 397 | id: albumLabel2 | 397 | id: albumLabel2 |
679 | 398 | anchors.bottom: parent.bottom | 398 | anchors.bottom: parent.bottom |
680 | 399 | anchors.bottomMargin: units.gu(3) | 399 | anchors.bottomMargin: units.gu(3) |
681 | 400 | anchors.left: parent.left | 400 | anchors.left: parent.left |
682 | 401 | anchors.leftMargin: units.gu(1) | 401 | anchors.leftMargin: units.gu(1) |
683 | 402 | anchors.right: parent.right | 402 | anchors.right: parent.right |
684 | 403 | anchors.rightMargin: units.gu(1) | 403 | anchors.rightMargin: units.gu(1) |
685 | 404 | color: styleMusic.common.white | 404 | color: styleMusic.common.white |
686 | 405 | elide: Text.ElideRight | 405 | elide: Text.ElideRight |
687 | 406 | text: album | 406 | text: album |
688 | 407 | fontSize: "small" | 407 | fontSize: "small" |
352 | 408 | } | ||
689 | 409 | } | 408 | } |
690 | 410 | } | 409 | } |
691 | 411 | } | 410 | } |
692 | 412 | } | 411 | } |
693 | 413 | } | 412 | } |
694 | 413 | } |
PASSED: Continuous integration, rev:428 91.189. 93.70:8080/ job/music- app-ci/ 722/ 91.189. 93.70:8080/ job/generic- mediumtests- trusty/ 2136 91.189. 93.70:8080/ job/music- app-raring- amd64-ci/ 722 91.189. 93.70:8080/ job/music- app-saucy- amd64-ci/ 724 91.189. 93.70:8080/ job/music- app-trusty- amd64-ci/ 443
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: 91.189. 93.70:8080/ job/music- app-ci/ 722/rebuild
http://