modifications to ui of player.
This commit is contained in:
parent
17408f5a69
commit
e610774e49
2 changed files with 24 additions and 8 deletions
|
|
@ -1,21 +1,38 @@
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
|
import QtGraphicalEffects 1.0
|
||||||
|
|
||||||
Item{
|
Item{
|
||||||
id: container
|
id: container
|
||||||
|
|
||||||
Image {
|
property int margins: 20
|
||||||
id: backgroundImage
|
|
||||||
|
|
||||||
anchors.fill: parent
|
Rectangle{
|
||||||
source: musicModel.pCurrentItem.pImageSource
|
id: coverBorder
|
||||||
fillMode: Image.PreserveAspectCrop
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
verticalAlignment: Image.AlignTop
|
anchors.top: parent.top
|
||||||
|
anchors.topMargin: container.margins
|
||||||
|
height: parent.height-controlPannel.height-2*container.margins
|
||||||
|
width: height
|
||||||
|
color: "blue"
|
||||||
|
Image{
|
||||||
|
id: cover
|
||||||
|
anchors.centerIn: parent
|
||||||
|
height: parent.height-10
|
||||||
|
width: height
|
||||||
|
source: musicModel.pCurrentItem.pImageSource
|
||||||
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
layer.enabled: true
|
||||||
|
layer.effect: OpacityMask{
|
||||||
|
maskSource: coverBorder
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RoundButton{
|
RoundButton{
|
||||||
id: backNavigation
|
id: backNavigation
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.margins: 20
|
anchors.margins: container.margins
|
||||||
onClicked: {
|
onClicked: {
|
||||||
musicModel.navigateBack();
|
musicModel.navigateBack();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
MusicModel::MusicModel(VlcInstance* instance, QObject *parent) : QObject(parent),
|
MusicModel::MusicModel(VlcInstance* instance, QObject *parent) : QObject(parent),
|
||||||
mVlc(instance), mMedia(new VlcMediaList(instance))
|
mVlc(instance), mMedia(new VlcMediaList(instance))
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MusicModel::~MusicModel()
|
MusicModel::~MusicModel()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue