mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
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:
@ -59,6 +59,12 @@ Rectangle {
|
|||||||
height: grid.cellHeight
|
height: grid.cellHeight
|
||||||
color: "#00000000"
|
color: "#00000000"
|
||||||
|
|
||||||
|
scale: mouseArea.containsMouse ? 1.025 : 1
|
||||||
|
|
||||||
|
Behavior on scale {
|
||||||
|
NumberAnimation { duration: 90 }
|
||||||
|
}
|
||||||
|
|
||||||
DropShadow {
|
DropShadow {
|
||||||
anchors.fill: realCell
|
anchors.fill: realCell
|
||||||
horizontalOffset: 0
|
horizontalOffset: 0
|
||||||
@ -131,7 +137,7 @@ Rectangle {
|
|||||||
border.color: (Qt.platform.os === "osx") ? selectedBorderColor : "#ffcc00"
|
border.color: (Qt.platform.os === "osx") ? selectedBorderColor : "#ffcc00"
|
||||||
border.width: 3
|
border.width: 3
|
||||||
|
|
||||||
opacity: (dummyValue || !dummyValue) && (comicsSelectionHelper.isSelectedIndex(index) || mouseArea.containsMouse) ? 1 : 0
|
opacity: (dummyValue || !dummyValue) && comicsSelectionHelper.isSelectedIndex(index) ? 1 : 0
|
||||||
|
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
NumberAnimation { duration: 300 }
|
NumberAnimation { duration: 300 }
|
||||||
|
Reference in New Issue
Block a user