1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-28 14:05:21 -04:00

feat(popouts): enhance hover functionality and introduce hover dismiss features

This commit is contained in:
purian23
2026-06-27 22:21:03 -04:00
parent 601d4104a3
commit a8c15fcde9
15 changed files with 1232 additions and 955 deletions
@@ -0,0 +1,25 @@
pragma ComponentBehavior: Bound
import QtQuick
HoverHandler {
id: root
required property var controller
property bool trackingEnabled: false
enabled: trackingEnabled
onTrackingEnabledChanged: {
if (!trackingEnabled)
controller.updateBodyHover(false);
}
onHoveredChanged: controller.updateBodyHover(hovered)
onPointChanged: {
if (!hovered)
return;
const gp = parent.mapToItem(null, point.position.x, point.position.y);
controller.updateCursor(gp.x, gp.y);
}
}