mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-05 10:29:30 +00:00
wizard v0.2
This commit is contained in:
parent
28dd3f2e58
commit
2a1f381470
4 changed files with 102 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE QtCreatorProject>
|
<!DOCTYPE QtCreatorProject>
|
||||||
<!-- Written by QtCreator 3.1.2, 2014-08-19T11:29:16. -->
|
<!-- Written by QtCreator 3.1.2, 2014-08-20T21:18:55. -->
|
||||||
<qtcreator>
|
<qtcreator>
|
||||||
<data>
|
<data>
|
||||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||||
|
|
|
@ -1,5 +1,91 @@
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
opacity: 0
|
||||||
|
visible: false
|
||||||
|
Behavior on opacity {
|
||||||
|
NumberAnimation { duration: 100; easing.type: Easing.InQuad }
|
||||||
|
}
|
||||||
|
|
||||||
|
onOpacityChanged: visible = opacity !== 0
|
||||||
|
|
||||||
|
Row {
|
||||||
|
id: dotsRow
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.topMargin: 74
|
||||||
|
spacing: 6
|
||||||
|
|
||||||
|
ListModel {
|
||||||
|
id: dotsModel
|
||||||
|
ListElement { dotColor: "#FFE00A" }
|
||||||
|
ListElement { dotColor: "#DBDBDB" }
|
||||||
|
ListElement { dotColor: "#DBDBDB" }
|
||||||
|
ListElement { dotColor: "#DBDBDB" }
|
||||||
|
}
|
||||||
|
|
||||||
|
Repeater {
|
||||||
|
model: dotsModel
|
||||||
|
delegate: Rectangle {
|
||||||
|
width: 12; height: 12
|
||||||
|
radius: 6
|
||||||
|
color: dotColor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Column {
|
||||||
|
id: headerColumn
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.topMargin: 74
|
||||||
|
spacing: 24
|
||||||
|
|
||||||
|
Text {
|
||||||
|
width: headerColumn.width - dotsRow.width - 50
|
||||||
|
font.family: "Arial"
|
||||||
|
font.pixelSize: 28
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
//renderType: Text.NativeRendering
|
||||||
|
color: "#3F3F3F"
|
||||||
|
text: qsTr("A new wallet has been created for you")
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
font.family: "Arial"
|
||||||
|
font.pixelSize: 18
|
||||||
|
//renderType: Text.NativeRendering
|
||||||
|
color: "#4A4646"
|
||||||
|
text: qsTr("This is the name of your wallet. You can change it to a different name if you’d like:")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
anchors.top: headerColumn.bottom
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.topMargin: 50
|
||||||
|
width: 300
|
||||||
|
height: 62
|
||||||
|
|
||||||
|
TextInput {
|
||||||
|
anchors.fill: parent
|
||||||
|
horizontalAlignment: TextInput.AlignHCenter
|
||||||
|
verticalAlignment: TextInput.AlignVCenter
|
||||||
|
font.family: "Arial"
|
||||||
|
font.pixelSize: 32
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
color: "#FF6C3C"
|
||||||
|
text: qsTr("My account name")
|
||||||
|
focus: true
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
height: 1
|
||||||
|
color: "#DBDBDB"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,7 @@ Rectangle {
|
||||||
var pages = new Array()
|
var pages = new Array()
|
||||||
pages[0] = welcomePage
|
pages[0] = welcomePage
|
||||||
pages[1] = optionsPage
|
pages[1] = optionsPage
|
||||||
|
pages[2] = createWalletPage
|
||||||
|
|
||||||
if(next === false) {
|
if(next === false) {
|
||||||
if(currentPage > 0) {
|
if(currentPage > 0) {
|
||||||
|
@ -67,6 +68,17 @@ Rectangle {
|
||||||
anchors.left: prevButton.right
|
anchors.left: prevButton.right
|
||||||
anchors.leftMargin: 50
|
anchors.leftMargin: 50
|
||||||
anchors.rightMargin: 50
|
anchors.rightMargin: 50
|
||||||
|
onCreateWalletClicked: wizard.switchPage(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
WizardCreateWallet {
|
||||||
|
id: createWalletPage
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.right: nextButton.left
|
||||||
|
anchors.left: prevButton.right
|
||||||
|
anchors.leftMargin: 50
|
||||||
|
anchors.rightMargin: 50
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
id: page
|
||||||
|
signal createWalletClicked()
|
||||||
opacity: 0
|
opacity: 0
|
||||||
visible: false
|
visible: false
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
|
@ -56,6 +58,7 @@ Item {
|
||||||
id: createWalletArea
|
id: createWalletArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
onClicked: page.createWalletClicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue