-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWelcomeScreen.qml
174 lines (168 loc) · 6.51 KB
/
WelcomeScreen.qml
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
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
Rectangle {
id: root
anchors.fill: parent
color: "#000000"
property real scalingFactor: Math.max(width, 320)/430 // Looks good on 430 screen
property real textFontSize: 20*scalingFactor
ColumnLayout {
anchors.fill: parent
Rectangle {
color: "black"
Text {
text: "Welcome to"
y: 20
anchors { horizontalCenter: parent.horizontalCenter }
font.pixelSize: 50
color: "#ffffff"
}
Text {
text: "FyrLysAR"
y: 25 + font.pixelSize
anchors { horizontalCenter: parent.horizontalCenter }
font.pixelSize: 50
color: "#ffffff"
}
Layout.fillWidth: true
Layout.fillHeight: false
Layout.minimumHeight: 200*scalingFactor
}
ColumnLayout {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.minimumHeight: 75
Rectangle {
color: "black"
Layout.fillWidth: true
Layout.fillHeight: true
RowLayout {
Layout.margins: 10
Rectangle {
color: "black"
width: 110*scalingFactor
Layout.fillHeight: true
AnimatedImage {
width: 45*scalingFactor
height: 75*scalingFactor
anchors.horizontalCenter: parent.horizontalCenter
source: "qrc:///images/light2.gif"
}
}
ColumnLayout {
Layout.minimumHeight: 75
Text {
Layout.fillWidth: true
text: "Lighthouses during daytime"
font.pixelSize: textFontSize
font.bold: true
color: "#ffffff"
}
Text {
Layout.fillWidth: true
Layout.fillHeight: true
wrapMode: Text.WordWrap
verticalAlignment: TextInput.AlignTop
text: "View flash patterns from<br>nearby lighthouses even<br>during daytime."
font.pixelSize: textFontSize
color: "#ffffff"
}
}
}
}
Rectangle {
color: "black"
Layout.fillWidth: true
Layout.fillHeight: true
RowLayout {
Layout.margins: 10
Rectangle {
color: "black"
width: 110*scalingFactor
Layout.fillHeight: true
AnimatedImage {
width: 75*scalingFactor
height: 75*scalingFactor
anchors.horizontalCenter: parent.horizontalCenter
source: "qrc:///images/crosshair.png"
}
}
ColumnLayout {
Layout.minimumHeight: 75
Text {
Layout.fillWidth: true
text: "Lighthouse info"
font.pixelSize: textFontSize
font.bold: true
color: "#ffffff"
}
Text {
Layout.fillWidth: true
Layout.fillHeight: true
wrapMode: Text.Wrap
verticalAlignment: TextInput.AlignTop
text: "Point the crosshair at the<br>lighthouse you want to know<br> more about."
font.pixelSize: textFontSize
color: "#ffffff"
}
}
}
}
Rectangle {
color: "black"
Layout.fillWidth: true
Layout.fillHeight: true
RowLayout {
Layout.margins: 10
Rectangle {
color: "black"
width: 110*scalingFactor
Layout.fillHeight: true
Image {
width: 75 * scalingFactor
height: 75 * scalingFactor
anchors.horizontalCenter: parent.horizontalCenter
source: "qrc:///images/gear-white.svg"
fillMode: Image.PreserveAspectFit
}
}
ColumnLayout {
Layout.minimumHeight: 75
Text {
Layout.fillWidth: true
text: "Customize position"
font.pixelSize: textFontSize
font.bold: true
color: "#ffffff"
}
Text {
Layout.fillWidth: true
Layout.fillHeight: true
wrapMode: Text.Wrap
verticalAlignment: TextInput.AlignTop
text: "Plan your trip by customizing<br>positions and be prepared for<br>what you will see at sea."
font.pixelSize: textFontSize
color: "#ffffff"
}
}
}
}
}
Rectangle {
color: "black"
Layout.fillWidth: true
Layout.fillHeight: false
Layout.minimumHeight: 70
Button {
width: parent.width * 0.7
height: 50
anchors { horizontalCenter: parent.horizontalCenter }
text: "Get started"
onClicked: {
root.visible = false
}
}
}
}
}