Commit 8a06845a authored by Camilo Higuita's avatar Camilo Higuita

quick list hightlight animation

parent 0e1cf750
......@@ -335,23 +335,6 @@ Kirigami.ApplicationWindow
opacity: opacityLevel
z: -999
Kirigami.Separator
{
Rectangle
{
anchors.fill: parent
color: Kirigami.Theme.viewFocusColor
}
anchors
{
left: parent.left
right: parent.right
top: parent.top
}
}
SequentialAnimation
{
id: animFooter
......@@ -394,6 +377,23 @@ Kirigami.ApplicationWindow
height: implicitHeight
color: "transparent"
Kirigami.Separator
{
Rectangle
{
anchors.fill: parent
color: Kirigami.Theme.viewFocusColor
}
anchors
{
left: parent.left
right: parent.right
top: parent.top
}
}
Rectangle
{
width: progressBar.visualPosition * parent.width
......@@ -406,9 +406,9 @@ Kirigami.ApplicationWindow
{
x: progressBar.leftPadding + progressBar.visualPosition * (progressBar.availableWidth - width)
y: progressBar.y-(height/2)
implicitWidth: 16
implicitHeight: 16
radius: 16
implicitWidth: progressBar.pressed ? 16 : 0
implicitHeight: progressBar.pressed ? 16 : 0
radius: progressBar.pressed ? 16 : 0
color: babeColor
}
......
......@@ -9,7 +9,7 @@ ListView
property alias holder : holder
signal pulled()
property bool wasPulled : false
property bool wasPulled : false
clip: true
......@@ -20,11 +20,20 @@ ListView
height: babeList.currentItem.height
color: babeHighlightColor
// y: babeList.currentItem.y
// Behavior on y
// {
// SpringAnimation
// {
// spring: 3
// damping: 0.2
// }
// }
}
focus: true
interactive: true
highlightFollowsCurrentItem: true
highlightMoveDuration: 0
keyNavigationWraps: !isMobile
keyNavigationEnabled : !isMobile
......@@ -67,10 +76,10 @@ ListView
onContentYChanged:
{
if(contentY < -120)
wasPulled = true
if(contentY < -120)
wasPulled = true
if(contentY == toolBarHeight*-1 && wasPulled)
if(contentY == toolBarHeight*-1 && wasPulled)
{ pulled(); wasPulled = false}
}
......
......@@ -121,6 +121,7 @@ BabeList
}
}
PlaylistDialog
{
id: playlistDialog
......
......@@ -106,22 +106,22 @@ Item
anchors.fill: parent
onDoubleClicked: gomini()
// drag.target: artwork
// drag.axis: Drag.YAxis
// drag.minimumY: 0
// drag.maximumY: coverSize
// drag.target: artwork
// drag.axis: Drag.YAxis
// drag.minimumY: 0
// drag.maximumY: coverSize
// onMouseYChanged:
// {
// onMouseYChanged:
// {
// cover.height = mouseY < 0 ? 0 : mouseY
// cover.height = mouseY < 0 ? 0 : mouseY
//// if(mouseY < coverSize*0.8)
//// {
//// cover.visible = false
//// if(mouseY < coverSize*0.8)
//// {
//// cover.visible = false
//// }else cover.visible = true
// }
//// }else cover.visible = true
// }
onPressAndHold:
{
......@@ -157,7 +157,7 @@ Item
Layout.column: 1
Layout.fillWidth: true
Layout.preferredHeight: visible ? toolBarHeight : 0
// anchors.top: cover.bottom
// anchors.top: cover.bottom
visible: list.count > 0
Rectangle
......@@ -319,7 +319,7 @@ Item
initialItem: BabeTable
{
id: list
// anchors.fill: parent
// anchors.fill: parent
quickPlayVisible: false
coverArtVisible: true
trackRating: true
......@@ -338,9 +338,9 @@ Item
{
prevTrackIndex = currentTrackIndex
currentTrackIndex = currentIndex
Player.playAt(index)
}
onArtworkDoubleClicked:
{
contextMenu.babeIt(index)
......@@ -407,7 +407,7 @@ Item
root.header.visible = false
infoBtn.visible = false
// root.footer.visible = false
// mainlistContext.visible = false
// mainlistContext.visible = false
}else
{
......@@ -422,7 +422,7 @@ Item
root.header.visible = true
infoBtn.visible = true
// root.footer.visible = true
// mainlistContext.visible = true
// mainlistContext.visible = true
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment