lez-programs/apps/amm/qml/components/liquidity/AmmPrimaryButton.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

44 lines
1.1 KiB
QML

import QtQuick
import QtQuick.Controls
Button {
id: root
required property var theme
activeFocusOnTab: true
focusPolicy: Qt.StrongFocus
hoverEnabled: true
implicitHeight: 56
Accessible.name: text
contentItem: Text {
text: root.text
color: root.enabled ? "#FFFFFF" : root.theme.colors.textSecondary
font.pixelSize: 17
font.weight: Font.Medium
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
background: Rectangle {
radius: 20
color: !root.enabled
? root.theme.colors.panelBg
: root.pressed
? root.theme.colors.ctaPressedBg
: root.hovered || root.activeFocus
? root.theme.colors.ctaHoverBg
: root.theme.colors.ctaBg
border.color: root.activeFocus && root.enabled
? root.theme.colors.textPrimary : "transparent"
border.width: 1
Behavior on color {
ColorAnimation { duration: 120 }
}
}
}