Skip to content

Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.

Windows: show tooltips next to their button, not in the corner

Beea79914dfb062
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8d2b970..b0c093d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,6 +19,8 @@ change things that need a step from you, and its notes say so.
dropped. It now decodes on the GPU when there is one and converts on several
cores, about 19 ms a frame
([#6](https://github.com/thtbee/nectarlink/issues/6)).
+- Windows: button tooltips, such as **Pause** on the media card, show next to
+ their button again instead of in the window's top-left corner.
## 0.1.3 (2026-10-15)
diff --git a/desktop/app/qml/components/IconButton.qml b/desktop/app/qml/components/IconButton.qml
index 0e9722e..c8f2d3e 100644
--- a/desktop/app/qml/components/IconButton.qml
+++ b/desktop/app/qml/components/IconButton.qml
@@ -121,7 +121,11 @@ FocusScope {
Rectangle {
id: tooltipPill
property bool shown: false
- parent: tooltipPill.visible && button.Window.contentItem ? button.Window.contentItem : button
+ // Always in the window's top layer: its position is worked out there
+ // before it shows (attached to the button until visible, it came out
+ // at the window's top-left corner).
+ parent: button.Window.contentItem ? button.Window.contentItem : button
+ onParentChanged: if (shown) reposition()
z: 1000
visible: opacity > 0 && button.effectiveTip.length > 0
opacity: shown && mouse.containsMouse && !mouse.pressed && button.visible && button.enabled ? 1 : 0
diff --git a/desktop/app/qml/components/LockChip.qml b/desktop/app/qml/components/LockChip.qml
index 6490242..cfa7416 100644
--- a/desktop/app/qml/components/LockChip.qml
+++ b/desktop/app/qml/components/LockChip.qml
@@ -150,7 +150,11 @@ Rectangle {
Rectangle {
id: helpTooltip
property bool shown: false
- parent: helpTooltip.visible && chip.Window.contentItem ? chip.Window.contentItem : chip
+ // Always in the window's top layer: its position is worked out there
+ // before it shows (attached to the chip until visible, it came out
+ // at the window's top-left corner).
+ parent: chip.Window.contentItem ? chip.Window.contentItem : chip
+ onParentChanged: if (shown) reposition()
z: 1000
visible: opacity > 0 && chip.helpText.length > 0
opacity: shown && chip.visible && chip.enabled ? 1 : 0