lena_pi/LenaPi/MusicPlayer.qml
2018-10-20 18:06:19 +02:00

44 lines
1,003 B
QML

import QtQuick 2.0
Item{
id: container
Image {
id: backgroundImage
anchors.fill: parent
source: "file:///home/ar/source/testLenaPi/benjamin/image.jpg"
fillMode: Image.PreserveAspectCrop
verticalAlignment: Image.AlignTop
}
RoundButton{
id: backNavigation
anchors.left: parent.left
anchors.top: parent.top
anchors.margins: 20
}
Rectangle {
id: controlPannel
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
color: "#99ffffff"
height: 120
RoundButton{
id: startPause
anchors.centerIn: parent
width: 80
imageSource: "qrc:/icon_play"
onClicked:{
if(imageSource == "qrc:/icon_play")
imageSource = "qrc:/icon_pause"
else
imageSource = "qrc:/icon_play"
}
}
}
}