2023-08-23 11:46:04 +00:00
import QtQuick 2.15
import QtQuick . Layouts 1.15
import StatusQ . Core 0.1
import StatusQ . Controls 0.1
import StatusQ . Core . Theme 0.1
import utils 1.0
Rectangle {
id: root
2024-06-07 13:29:09 +00:00
property string title: qsTr ( "Import key pair to use this account" )
property string info: qsTr ( "This account was added to one of your synced devices. To use this account you will first need import the associated key pair to this device." )
property string buttonName: qsTr ( "Import missing key pair" )
2023-08-23 11:46:04 +00:00
signal runImport ( )
2024-10-15 19:26:12 +00:00
radius: Theme . radius
2023-08-23 11:46:04 +00:00
border.width: 1
border.color: Theme . palette . directColor8
color: Theme . palette . transparent
ColumnLayout {
anchors.left: parent . left
anchors.right: parent . right
2024-10-15 19:26:12 +00:00
anchors.leftMargin: Theme . padding
anchors.rightMargin: Theme . padding
spacing: Theme . halfPadding
2023-08-23 11:46:04 +00:00
StatusBaseText {
Layout.fillWidth: true
2024-10-15 19:26:12 +00:00
Layout.topMargin: Theme . padding
2023-08-23 11:46:04 +00:00
text: root . title
color: Theme . palette . warningColor1
}
StatusBaseText {
Layout.fillWidth: true
wrapMode: Text . WordWrap
text: root . info
}
StatusButton {
Layout.alignment: Qt . AlignLeft
2024-10-15 19:26:12 +00:00
Layout.bottomMargin: Theme . padding
2023-08-23 11:46:04 +00:00
text: root . buttonName
type: StatusBaseButton . Type . Warning
icon.name: "download"
onClicked: {
root . runImport ( )
}
}
}
}