Skip to content

Commit a6a51a0

Browse files
committed
fix: dash tab hover
1 parent f68fb78 commit a6a51a0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules/dashboard/Tabs.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Item {
121121
implicitWidth: Math.max(icon.width, label.width)
122122
implicitHeight: icon.height + label.height
123123

124+
hoverEnabled: true
124125
cursorShape: Qt.PointingHandCursor
125126

126127
onPressed: event => {
@@ -190,7 +191,7 @@ Item {
190191
anchors.fill: parent
191192

192193
color: tab.current ? Colours.palette.m3primary : Colours.palette.m3onSurface
193-
opacity: mouse.pressed ? 0.1 : tab.hovered ? 0.08 : 0
194+
opacity: mouse.pressed ? 0.1 : mouse.containsMouse ? 0.08 : 0
194195

195196
Behavior on opacity {
196197
Anim {}

0 commit comments

Comments
 (0)