status-desktop/ui/onboarding/GenKeyModal.qml

64 lines
1.5 KiB
QML
Raw Normal View History

2020-06-17 19:18:31 +00:00
import QtQuick 2.13
import QtQuick.Controls 2.13
import "../imports"
2020-06-13 15:17:54 +00:00
import "../shared"
import "./Login"
ModalPopup {
property int selectedIndex: 0
property var onClosed: function () {}
property var onNextClick: function () {}
id: popup
//% "Choose a chat name"
title: qsTrId("intro-wizard-title2")
2020-06-13 15:17:54 +00:00
AccountList {
id: accountList
anchors.fill: parent
2020-06-15 13:37:16 +00:00
interactive: false
2020-06-13 15:17:54 +00:00
accounts: onboardingModel
isSelected: function (index, address) {
return index === selectedIndex
}
onAccountSelect: function(index) {
selectedIndex = index
}
}
footer: Button {
id: submitBtn
anchors.bottom: parent.bottom
anchors.topMargin: Style.current.padding
2020-06-13 15:17:54 +00:00
anchors.right: parent.right
anchors.rightMargin: Style.current.padding
2020-06-13 15:17:54 +00:00
width: 44
height: 44
background: Rectangle {
radius: 50
color: Style.current.lightBlue
2020-06-13 15:17:54 +00:00
}
SVGImage {
2020-06-13 15:17:54 +00:00
sourceSize.height: 15
sourceSize.width: 20
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
source: "../app/img/leave_chat.svg"
rotation: 180
fillMode: Image.PreserveAspectFit
}
onClicked : {
onNextClick(selectedIndex);
popup.close()
}
}
}
/*##^##
Designer {
D{i:0;formeditorColor:"#ffffff";height:500;width:400}
}
##^##*/