mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-07-18 04:49:30 +00:00
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.
44 lines
1.1 KiB
QML
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 }
|
|
}
|
|
}
|
|
}
|