~ahayzen/music-app/show-toolbar-on-play

« back to all changes in this revision

Viewing changes to MusicNowPlaying.qml

  • Committer: Tarmac
  • Author(s): Andrew Hayzen, Victor Thompson, Daniel Holm
  • Date: 2013-10-12 01:50:13 UTC
  • mfrom: (159.2.53 expandable-and-more.3)
  • Revision ID: tarmac-20131012015013-3j51o2kujo7sbyqj
* Expanable item in playlists tab, playlists, artists, albums and in tracks tab.
* Removed the press and hold on above.
* Removed shuffle setting from settings since its now in new toolbar.
* Changed color of swipe to delete; added some translatable strings; added back action into HUD.
* Use default black in SwipeDelete.
* Added add to playlist in now playing page.
* Commented out a lot of output.
* Fix for shuffle requiring a restart to take affect
* Fix for blank images in MusicaddtoPlaylist and fallback image
* Fix for cover art in header of playlist tracks
* Fix for fallback cover art in the artist tab
* Add proper manifest file
* Make the Recent and Genre horizontal list cover arts a bit smaller. They clipped at the bottom.
* Force header to disappear when now playing page is shown, this helps stop a glitch where the header overlays the now playing page preventing the user from going back - unless they use the HUD
* Use UbuntuShape for play/pause in Now Playing Toolbar.
* Fix so that count is updated in MusicaddtoPlaylist.qml when a track is
removed from a playlist
* Update version to 1.0 prior to release
* Added screenshots.
* Updated translations.
* Back button on MusicNowPlaying.qml now uses the images/dropdown-menu.svg as per design spec
* Fixes for the music-app.desktop
* Fixes to the manifest.json. Fixes: https://bugs.launchpad.net/bugs/1237893.

Approved by Ubuntu Phone Apps Jenkins Bot, Daniel Holm, Victor Thompson, Andrew Hayzen.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import QtQuick 2.0
22
22
import QtQuick.LocalStorage 2.0
23
23
import Ubuntu.Components 0.1
 
24
import Ubuntu.Components.Popups 0.1
24
25
import Ubuntu.Components.ListItems 0.1 as ListItem
25
26
import "common"
26
27
import "meta-database.js" as Library
37
38
        {
38
39
            header.hide();
39
40
            header.visible = false;
 
41
            header.opacity = 0;
40
42
            musicToolbar.setPage(nowPlaying, musicToolbar.currentPage);
41
43
        }
42
44
        else
43
45
        {
44
46
            header.visible = true;
 
47
            header.opacity = 1;
45
48
            header.show();
46
49
        }
47
50
    }
477
480
                        width: parent.width - x
478
481
                        x: trackImage.x + trackImage.width + units.gu(1)
479
482
                    }
 
483
                    Icon {
 
484
                        id: expandItem
 
485
                        anchors.right: parent.right
 
486
                        anchors.rightMargin: units.gu(2)
 
487
                        anchors.top: parent.top
 
488
                        anchors.topMargin: units.gu(2)
 
489
                        name: "add"
 
490
                        height: styleMusic.common.expandedItem
 
491
                        width: styleMusic.common.expandedItem
 
492
                    }
 
493
 
 
494
                    MouseArea {
 
495
                        anchors.bottom: parent.bottom
 
496
                        anchors.right: parent.right
 
497
                        anchors.top: parent.top
 
498
                        width: styleMusic.common.expandedItem * 3
 
499
                        onClicked: {
 
500
                           chosenArtist = artist
 
501
                           chosenTitle = title
 
502
                           chosenTrack = file
 
503
                           chosenAlbum = album
 
504
                           chosenCover = cover
 
505
                           chosenGenre = genre
 
506
                           chosenIndex = index
 
507
                           customdebug("Add track to playlist")
 
508
                           PopupUtils.open(Qt.resolvedUrl("MusicaddtoPlaylist.qml"), mainView,
 
509
                           {
 
510
                               title: i18n.tr("Select playlist")
 
511
                           } )
 
512
                       }
 
513
                   }
480
514
                }
481
515
                states: State {
482
516
                    name: "current"
527
561
        color: styleMusic.nowPlaying.foregroundColor
528
562
        height: units.gu(3)
529
563
 
530
 
        Label {
 
564
        Image {
 
565
            id: expandItem
531
566
            anchors.horizontalCenter: parent.horizontalCenter
532
567
            anchors.verticalCenter: parent.verticalCenter
533
 
            text: i18n.tr("Back")
 
568
            source: "images/dropdown-menu.svg"
 
569
            height: units.gu(2)
 
570
            width: height
534
571
        }
535
572
 
536
573
        MouseArea {