diff --git a/src/app/qml/listcomponents/BookTileTall.qml b/src/app/qml/listcomponents/BookTileTall.qml --- a/src/app/qml/listcomponents/BookTileTall.qml +++ b/src/app/qml/listcomponents/BookTileTall.qml @@ -52,6 +52,33 @@ anchors.fill: parent; onClicked: root.bookSelected(root.filename, root.currentPage); onPressAndHold: root.pressAndHold(mouse); + onPressed: pressIndicatorAnimation.start(); + onReleased: {pressIndicatorAnimation.stop(); pressIndicator.width = 0;pressIndicator.height = 0;} + + ParallelAnimation { + id: pressIndicatorAnimation; + NumberAnimation { + target: pressIndicator; + from: coverImage.paintedWidth/3; + to: coverOutline.width; + property: "width"; + duration: 800; + } + NumberAnimation { + target: pressIndicator; + from: coverImage.paintedWidth/3; + to: coverOutline.height; + property: "height"; + duration: 800; + } + NumberAnimation { + target: pressIndicator; + from: coverImage.paintedWidth/3; + to: 0; + property: "radius"; + duration: 800; + } + } } Item { id: bookCover; @@ -100,6 +127,15 @@ visible: running; running: coverImage.status === Image.Loading; } + Rectangle{ + id: pressIndicator; + anchors.centerIn: coverImage; + width: 0; + height: 0; + color: "transparent"; + border.color:Kirigami.Theme.highlightColor; + border.width:Kirigami.Units.smallSpacing; + } } QtControls.Label { id: bookTitle;