513
519
to: units.gu(0.5)
522
leftMargin: units.gu(1.5)
525
size: (queueListItem.state === "current"
526
? (mainView.wideAspect
527
? queuelist.currentHeight
528
: mainView.width - (trackImage.anchors.leftMargin * 2))
529
: queuelist.normalHeight) - units.gu(2)
530
524
covers: [{art: model.art, album: model.album, author: model.author}]
534
Item { // Background so can see text in current state
538
bottom: parent.bottom
546
bottom: parent.bottom
550
height: trackImage.height
552
color: styleMusic.common.black
557
function calcAnchors() {
558
if (trackImage.height > queuelist.normalHeight && mainView.wideAspect) {
559
trackImage.anchors.left = undefined
560
trackImage.anchors.horizontalCenter = trackImage.parent.horizontalCenter
562
trackImage.anchors.left = trackImage.parent.left
563
trackImage.anchors.horizontalCenter = undefined
566
trackImage.width = trackImage.height; // force width to match height
571
onWideAspectChanged: trackImage.calcAnchors()
581
duration: queuelist.transitionDuration;
587
objectName: "artistLabel"
588
color: styleMusic.nowPlaying.labelSecondaryColor
589
elide: Text.ElideRight
593
width: parent.width - trackImage.width - units.gu(3.5)
594
x: trackImage.x + trackImage.width + units.gu(1)
595
y: trackImage.y + units.gu(1)
599
objectName: "titleLabel"
600
color: styleMusic.common.white
601
elide: Text.ElideRight
605
width: parent.width - trackImage.width - units.gu(3.5)
606
x: trackImage.x + trackImage.width + units.gu(1)
607
y: nowPlayingArtist.y + nowPlayingArtist.height + units.gu(1.25)
611
objectName: "albumLabel"
612
color: styleMusic.nowPlaying.labelSecondaryColor
613
elide: Text.ElideRight
617
width: parent.width - trackImage.width - units.gu(3.5)
618
x: trackImage.x + trackImage.width + units.gu(1)
619
y: nowPlayingTitle.y + nowPlayingTitle.height + units.gu(1.25)
626
target: queueListItem
627
height: trackImage.size + (trackContainer.anchors.margins * 2)
630
target: nowPlayingArtist
631
width: trackImage.width - units.gu(4)
632
x: trackImage.x + units.gu(2)
633
y: trackImage.y + trackImage.height - albumBg.height + units.gu(1)
634
color: styleMusic.common.white
637
target: nowPlayingTitle
638
width: trackImage.width - units.gu(4)
639
x: trackImage.x + units.gu(2)
640
y: nowPlayingArtist.y + nowPlayingArtist.height + units.gu(1.25)
641
color: styleMusic.common.white
642
font.weight: Font.DemiBold
645
target: nowPlayingAlbum
646
width: trackImage.width - units.gu(4)
647
x: trackImage.x + units.gu(2)
648
y: nowPlayingTitle.y + nowPlayingTitle.height + units.gu(1.25)
649
color: styleMusic.common.white
656
transitions: Transition {
660
duration: queuelist.transitionDuration
661
properties: "height,opacity,width,x,y"
665
if (running === false && ensureVisibleIndex != -1)
667
queuelist.positionViewAtIndex(ensureVisibleIndex, ListView.Beginning);
668
ensureVisibleIndex = -1;
526
coverSize: units.gu(6)
530
color: queuelist.currentIndex === index ? UbuntuColors.blue
531
: styleMusic.common.music
533
objectName: "titleLabel"
539
color: styleMusic.common.subtitle
541
objectName: "artistLabel"