From 55f7c4e1b0d6fc1384190a24ad1a3585e0e168b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Mon, 27 Dec 2021 16:25:43 +0100 Subject: [PATCH] Modify the scale of the cell on mouse over This will differentiate the mouse over accent vs the selection accent --- YACReaderLibrary/qml/GridComicsView.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/YACReaderLibrary/qml/GridComicsView.qml b/YACReaderLibrary/qml/GridComicsView.qml index d34fa76f..d8ed23a8 100644 --- a/YACReaderLibrary/qml/GridComicsView.qml +++ b/YACReaderLibrary/qml/GridComicsView.qml @@ -59,6 +59,12 @@ Rectangle { height: grid.cellHeight color: "#00000000" + scale: mouseArea.containsMouse ? 1.025 : 1 + + Behavior on scale { + NumberAnimation { duration: 90 } + } + DropShadow { anchors.fill: realCell horizontalOffset: 0 @@ -131,7 +137,7 @@ Rectangle { border.color: (Qt.platform.os === "osx") ? selectedBorderColor : "#ffcc00" border.width: 3 - opacity: (dummyValue || !dummyValue) && (comicsSelectionHelper.isSelectedIndex(index) || mouseArea.containsMouse) ? 1 : 0 + opacity: (dummyValue || !dummyValue) && comicsSelectionHelper.isSelectedIndex(index) ? 1 : 0 Behavior on opacity { NumberAnimation { duration: 300 }