Modify the scale of the cell on mouse over

This will differentiate the mouse over accent vs the selection accent
This commit is contained in:
Luis Ángel San Martín
2021-12-27 16:25:43 +01:00
parent 88de0ae25a
commit 55f7c4e1b0

View File

@ -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 }