blob: fa8377b980fe75d7a768e2e4e332a7bf65463c4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
|
import QtQuick
import QtQuick.Controls
import Loginui1
import QtQuick.Timeline 1.0
Rectangle {
id: rectangle
width: Constants.width
height: Constants.height
color: Constants.backgroundColor
state: "login"
Image {
id: adventurePage
anchors.fill: parent
source: "images/adventurePage.jpg"
fillMode: Image.PreserveAspectFit
}
Image {
id: qt_logo_green_128x128px
anchors.top: parent.top
source: "images/qt_logo_green_128x128px.png"
anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 40
fillMode: Image.PreserveAspectFit
}
Text {
id: tagLine
color: "#ffffff"
text: qsTr("Are you ready to explore?")
anchors.top: qt_logo_green_128x128px.bottom
font.pixelSize: 50
anchors.topMargin: 40
anchors.horizontalCenter: parent.horizontalCenter
font.family: "Titillium Web ExtraLight"
anchors.horizontalCenterOffset: 0
}
EntryField {
id: username
text: qsTr("Username or Email")
anchors.top: tagLine.bottom
anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 170
}
EntryField {
id: password
text: qsTr("Password")
anchors.top: username.bottom
anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 21
}
EntryField {
id: repeatPassword
opacity: 0
text: qsTr("Repeat Password")
anchors.top: password.bottom
anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 20
}
Column {
id: buttons
y: 944
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: 50
spacing: 20
PushButton {
id: login
text: qsTr("Continue")
}
PushButton {
id: createAccount
text: qsTr("Create Account")
Connections {
target: createAccount
onClicked: rectangle.state = "createAccount"
}
}
}
Timeline {
id: timeline
animations: [
TimelineAnimation {
id: toCreateAccountState
duration: 1000
running: false
loops: 1
to: 1000
from: 0
}
]
endFrame: 1000
enabled: true
startFrame: 0
KeyframeGroup {
target: repeatPassword
property: "opacity"
Keyframe {
value: 0
frame: 0
}
Keyframe {
value: 1
frame: 1000
}
}
KeyframeGroup {
target: createAccount
property: "opacity"
Keyframe {
value: 1
frame: 0
}
Keyframe {
value: 0
frame: 1000
}
}
KeyframeGroup {
target: repeatPassword
property: "anchors.topMargin"
Keyframe {
value: -100
frame: 0
}
Keyframe {
value: -100
frame: 4
}
Keyframe {
easing.bezierCurve: [0.39, 0.575, 0.565, 1, 1, 1]
value: 20
frame: 999
}
}
}
states: [
State {
name: "login"
},
State {
name: "createAccount"
PropertyChanges {
target: timeline
enabled: true
}
PropertyChanges {
target: toCreateAccountState
running: true
}
}
]
}
/*##^##
Designer {
D{i:0;formeditorZoom:0.5}D{i:1}D{i:2}D{i:3}D{i:4}D{i:5}D{i:6}D{i:8}D{i:10}D{i:9}D{i:7}
D{i:11}
}
##^##*/
|