mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 22:06:25 +00:00
1d2774283f
Update StatusRoundButton colours to support a "tertiary" style (background and icon color overlay), as well as tertiary hover colour. Fix the modal header close button so that it more closely matches the design. Replace the buttons in the onboarding modals with StatusRoundButtons were possible.
50 lines
1.1 KiB
QML
50 lines
1.1 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtGraphicalEffects 1.13
|
|
import "../imports"
|
|
import "../shared"
|
|
import "../shared/status"
|
|
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")
|
|
|
|
AccountList {
|
|
id: accountList
|
|
anchors.fill: parent
|
|
interactive: false
|
|
|
|
accounts: onboardingModel
|
|
isSelected: function (index, address) {
|
|
return index === selectedIndex
|
|
}
|
|
onAccountSelect: function(index) {
|
|
selectedIndex = index
|
|
}
|
|
}
|
|
footer: StatusRoundButton {
|
|
id: submitBtn
|
|
anchors.bottom: parent.bottom
|
|
anchors.topMargin: Style.current.padding
|
|
anchors.right: parent.right
|
|
icon.name: "arrow-right"
|
|
icon.width: 20
|
|
icon.height: 16
|
|
onClicked : {
|
|
onNextClick(selectedIndex);
|
|
popup.close()
|
|
}
|
|
}
|
|
}
|
|
|
|
/*##^##
|
|
Designer {
|
|
D{i:0;formeditorColor:"#ffffff";height:500;width:400}
|
|
}
|
|
##^##*/
|