~etherpulse/podbird/bottom_edge

« back to all changes in this revision

Viewing changes to app/podbird.qml

  • Committer: Eran Uzan
  • Date: 2017-06-10 21:44:35 UTC
  • Revision ID: etherpulse@gmail.com-20170610214435-85wcnwloirmrkjwv
Added bottom edge support toggle in setting page

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
        property int skipForward: 30
128
128
        property int skipBack: 10
129
129
        property bool downloadOverWifiOnly: true
 
130
        property bool enableBottomEdge: true
130
131
    }
131
132
 
132
133
    FileManager {
469
470
 
470
471
    Loader {
471
472
        id: playerControlLoader
472
 
 
473
473
        anchors.bottom: parent.bottom
474
474
        height: units.gu(7)
475
475
        width: parent.width
479
479
        states: [
480
480
            State {
481
481
                name: "shown"
482
 
                when: player.playlist.itemCount !== 0 && !mainStack.currentPage.isNowPlayingPage
 
482
                when: player.playlist.itemCount !== 0
483
483
                PropertyChanges { target: playerControlLoader; anchors.bottomMargin: 0 }
484
484
            },
485
485
 
486
486
            State {
487
487
                name: "hidden"
488
 
                when: player.playlist.itemCount === 0 || mainStack.currentPage.isNowPlayingPage || !playerControl.visible
 
488
                when: player.playlist.itemCount === 0 || !playerControl.visible
489
489
                PropertyChanges { target: playerControlLoader; anchors.bottomMargin: -units.gu(7) }
490
490
            }
491
491
        ]