feat(BRIDGE-358): hover tooltip on copy to clipboard UI button

This commit is contained in:
Atanas Janeshliev
2025-07-02 17:25:14 +02:00
parent 5ea45790fe
commit 366f7eb4e0

View File

@ -64,6 +64,7 @@ Item {
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
hoverEnabled: true
onClicked: { onClicked: {
valueText.select(0, valueText.length); valueText.select(0, valueText.length);
@ -72,6 +73,29 @@ Item {
} }
onPressed: parent.scale = 0.90 onPressed: parent.scale = 0.90
onReleased: parent.scale = 1 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
}
}
} }
} }
} }