mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-07-15 11:29:59 +00:00
59 lines
1.4 KiB
QML
59 lines
1.4 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
import Logos.Theme
|
|
import Logos.Controls
|
|
|
|
Popup {
|
|
id: root
|
|
|
|
property string title: qsTr("Wallet error")
|
|
property string message: ""
|
|
property string acceptLabel: qsTr("OK")
|
|
|
|
modal: true
|
|
dim: true
|
|
padding: Theme.spacing.large
|
|
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
|
|
|
|
parent: Overlay.overlay
|
|
anchors.centerIn: parent
|
|
width: 360
|
|
|
|
background: Rectangle {
|
|
color: Theme.palette.backgroundSecondary
|
|
radius: Theme.spacing.radiusXlarge
|
|
border.color: Theme.palette.backgroundElevated
|
|
}
|
|
|
|
contentItem: ColumnLayout {
|
|
width: root.availableWidth
|
|
spacing: Theme.spacing.large
|
|
|
|
LogosText {
|
|
Layout.fillWidth: true
|
|
text: root.title
|
|
wrapMode: Text.WordWrap
|
|
font.pixelSize: Theme.typography.titleText
|
|
font.weight: Theme.typography.weightBold
|
|
color: Theme.palette.text
|
|
}
|
|
|
|
LogosText {
|
|
Layout.fillWidth: true
|
|
text: root.message
|
|
wrapMode: Text.WordWrap
|
|
font.pixelSize: Theme.typography.secondaryText
|
|
color: Theme.palette.textSecondary
|
|
}
|
|
|
|
LogosButton {
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: Theme.spacing.medium
|
|
text: root.acceptLabel
|
|
onClicked: root.close()
|
|
}
|
|
}
|
|
}
|