lez-programs/apps/amm/qml/components/liquidity/AmmPairSeparator.qml
Ricardo Guilherme Schmidt 6de8a5fe9a
feat(amm-ui): complete new position liquidity flow
Implement one create-pool and add-liquidity workflow. Add searchable token resolution, direct opening-price and deposit editing, optimistic pool activation, and base58 transaction IDs.

Isolate network, wallet, AMM client, and runtime boundaries. Stabilize quote, submission, refresh, and pool-probe state while consolidating liquidity tests and removing obsolete liquidity paths.
2026-07-16 15:46:50 +02:00

62 lines
1.5 KiB
QML

import QtQuick
import QtQuick.Controls
Item {
id: root
required property var theme
property string symbol: "\u2193"
property string accessibleName: qsTr("Swap token order")
signal clicked
implicitHeight: 40
Rectangle {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.right: parent.right
height: 1
color: root.theme.colors.divider
}
Button {
id: button
anchors.centerIn: parent
width: 36
height: 36
hoverEnabled: true
enabled: root.enabled
Accessible.name: root.accessibleName
ToolTip.visible: hovered
ToolTip.text: Accessible.name
onClicked: root.clicked()
contentItem: Text {
text: root.symbol
color: button.enabled
? root.theme.colors.textPrimary
: root.theme.colors.textPlaceholder
font.pixelSize: 16
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
background: Rectangle {
radius: 18
color: button.hovered || button.activeFocus
? root.theme.colors.panelHoverBg
: root.theme.colors.panelBg
border.color: root.theme.colors.borderStrong
border.width: 1
Behavior on color {
ColorAnimation { duration: 120 }
}
}
}
}