Skip to content
Snippets Groups Projects
Commit 405babd5 authored by jonymt's avatar jonymt
Browse files

[*] changed design for wallet tip

parent e3b4ccdc
No related branches found
No related tags found
1 merge request!20Bugs 2546
Pipeline #898 passed with stage
in 3 minutes
...@@ -115,15 +115,15 @@ DapUiQmlScreenHistoryForm { ...@@ -115,15 +115,15 @@ DapUiQmlScreenHistoryForm {
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
onMouseXChanged: { onPositionChanged: {
tipTokenName.x = mouse.x; if(!hovered) return;
} var globalCoord = mapToItem(dapUiQmlScreenHistory, mouse.x, mouse.y);
tipTokenName.x = globalCoord.x - tipTokenName.width / 2;
onMouseYChanged: { tipTokenName.y = globalCoord.y - (tipTokenName.height + 5);
tipTokenName.y = mouse.y;
} }
onEntered: { onEntered: {
tipTokenName.text = dapNumberWallet.text;
tipTokenName.visible = true; tipTokenName.visible = true;
} }
...@@ -216,23 +216,6 @@ DapUiQmlScreenHistoryForm { ...@@ -216,23 +216,6 @@ DapUiQmlScreenHistoryForm {
} }
} }
// Number wallet tip
Rectangle {
id: tipTokenName
color: "#FFFFFF";
width: contentChildren.width
height: contentChildren.height
visible: false
Text {
text: dapNumberWallet.text
color: "#4F5357"
font.family: "Regular"
font.pixelSize: 14 * pt
}
}
// Underline // Underline
Rectangle { Rectangle {
x: dapTokenNameContainer.x x: dapTokenNameContainer.x
...@@ -244,6 +227,20 @@ DapUiQmlScreenHistoryForm { ...@@ -244,6 +227,20 @@ DapUiQmlScreenHistoryForm {
} }
// Number wallet tip
Label {
id: tipTokenName
padding: 3 * pt
color: "#4F5357"
font.family: "Regular"
font.pixelSize: 14 * pt
background: Rectangle {
anchors.fill: parent
color: "#FFFFFF";
border.color: "#80000000"
border.width: 1 * pt
}
}
} }
/*##^## Designer { /*##^## Designer {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment