Lots of uncommitted changes

This commit is contained in:
outfoxxed 2024-05-08 14:18:44 -07:00
parent daace49bfc
commit 497ca48ada
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
27 changed files with 909 additions and 134 deletions

View file

@ -0,0 +1,31 @@
import QtQuick
import Quickshell
Item {
id: root
required property var tooltip;
required property Item owner;
property bool isMenu: false;
property bool animateSize: true;
property bool show: false;
property real targetRelativeY: owner.height / 2;
property real hangTime: isMenu ? 0 : 200;
signal close();
onShowChanged: {
if (show) {
hangTimer.stop();
tooltip.setItem(this);
} else if (hangTime == 0) {
tooltip.removeItem(this);
} else hangTimer.start();
}
Timer {
id: hangTimer
interval: hangTime
onTriggered: tooltip.removeItem(root);
}
}