diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-09-18 15:10:16 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-09-18 15:10:16 +0800 |
| commit | 8a71bd72f53e3629fb1d23d7c1b153207ba44789 (patch) | |
| tree | 3d91e82c5be62d6e65383df0b906e80c13f0a4cc /components | |
| parent | 654a198d61b82dba6203280163b5c92ed9d48ceb (diff) | |
feat: system tray
Diffstat (limited to 'components')
| -rw-r--r-- | components/IToolTip.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/components/IToolTip.qml b/components/IToolTip.qml new file mode 100644 index 0000000..bea05b8 --- /dev/null +++ b/components/IToolTip.qml @@ -0,0 +1,23 @@ +import QtQuick +import QtQuick.Controls +import Qt5Compat.GraphicalEffects + +import qs.components +import qs.config + +ToolTip { + id: root + + property bool active + + visible: hover.hovered && active + delay: General.toolTipDelay + + contentItem: IText { + text: root.text + } + + background: Rectangle { + color: Qt.rgba(Colors.background3.r, Colors.background3.g, Colors.background3.b, General.toolTipBackgroundOpacity) + } +} |
