mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-25 14:11:09 +00:00
Consolidate wallet account decoding and portfolio handling around the shared Rust IDL decoder. Simplify AMM wallet integration, remove obsolete caches and network plumbing, and cover account selection and live flows.
58 lines
1.3 KiB
QML
58 lines
1.3 KiB
QML
import QtQuick
|
|
import QtQuick.Controls.Basic
|
|
import QtQuick.Layouts
|
|
|
|
Popup {
|
|
id: root
|
|
|
|
property string title: qsTr("Wallet error")
|
|
property string message: ""
|
|
|
|
modal: true
|
|
dim: true
|
|
parent: Overlay.overlay
|
|
width: Math.max(0, Math.min(380, parent ? parent.width - 32 : 380))
|
|
x: parent ? Math.max(0, Math.round((parent.width - width) / 2)) : 0
|
|
y: parent ? Math.max(0, Math.round((parent.height - height) / 2)) : 0
|
|
padding: 20
|
|
focus: true
|
|
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
|
|
|
|
onOpened: Qt.callLater(function() { closeButton.forceActiveFocus() })
|
|
|
|
background: Rectangle {
|
|
color: "#18181b"
|
|
border.color: "#3f3f46"
|
|
border.width: 1
|
|
radius: 8
|
|
}
|
|
|
|
contentItem: ColumnLayout {
|
|
spacing: 16
|
|
|
|
Label {
|
|
Layout.fillWidth: true
|
|
text: root.title
|
|
color: "#f4f4f5"
|
|
font.bold: true
|
|
font.pixelSize: 17
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
|
|
Label {
|
|
Layout.fillWidth: true
|
|
text: root.message
|
|
color: "#d4d4d8"
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
|
|
Button {
|
|
id: closeButton
|
|
|
|
Layout.alignment: Qt.AlignRight
|
|
text: qsTr("Close")
|
|
onClicked: root.close()
|
|
}
|
|
}
|
|
}
|