Skip to content

Commit 0afee2d

Browse files
committed
fix daycell overlapping with mouse hover effect
1 parent 01f3605 commit 0afee2d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

qml/DayCell.qml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ import "qrc:/qml/"
77
Rectangle {
88
id: dayCell
99
radius: 5
10-
scale: cellMouseArea.containsMouse ? 1.2 : 1.0
11-
z: cellMouseArea.containsMouse ? 1 : 0
12-
Behavior on scale {
13-
NumberAnimation { duration: 150; easing.type: Easing.InOutQuad }
14-
}
15-
1610
property int bsDay: 0
1711
property int adDay: 0
1812
property string tithi: ""
@@ -42,6 +36,11 @@ Rectangle {
4236
text: Panchanga.toDevanagari(bsDay || 0)
4337
font.bold: true
4438
font.pixelSize: cellMouseArea.containsMouse ? 28 : 25
39+
scale: cellMouseArea.containsMouse ? 1.2 : 1.0
40+
z: cellMouseArea.containsMouse ? 1 : 0
41+
Behavior on scale {
42+
NumberAnimation { duration: 150; easing.type: Easing.InOutQuad }
43+
}
4544
color: {
4645
if (!theme) return "black";
4746
if (isToday) return theme.accentText;

0 commit comments

Comments
 (0)