added basic usi for music player. No model yet.
This commit is contained in:
parent
bf145a9be9
commit
ef018332b9
9 changed files with 57 additions and 2 deletions
44
LenaPi/MusicPlayer.qml
Normal file
44
LenaPi/MusicPlayer.qml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue