From 366f7eb4e0d672a3d6965781ddbc4e30becf108c Mon Sep 17 00:00:00 2001 From: Atanas Janeshliev Date: Wed, 2 Jul 2025 17:25:14 +0200 Subject: [PATCH] feat(BRIDGE-358): hover tooltip on copy to clipboard UI button --- .../bridge-gui/qml/ConfigurationItem.qml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/ConfigurationItem.qml b/internal/frontend/bridge-gui/bridge-gui/qml/ConfigurationItem.qml index 625aa17f..df61648d 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/ConfigurationItem.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/ConfigurationItem.qml @@ -64,6 +64,7 @@ Item { MouseArea { anchors.fill: parent + hoverEnabled: true onClicked: { valueText.select(0, valueText.length); @@ -72,6 +73,29 @@ Item { } onPressed: parent.scale = 0.90 onReleased: parent.scale = 1 + + ToolTip { + visible: parent.containsMouse + delay: 500 + + background: Rectangle { + color: root.colorScheme.background_weak + border.color: root.colorScheme.border_weak + border.width: 1 + radius: 4 + } + + contentItem: Text { + text: "Copy to clipboard" + color: root.colorScheme.text_norm + font.pixelSize: ProtonStyle.caption_font_size + padding: 4 + + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + } + } + } } }