Skip to content

Commit 8906342

Browse files
shaavanhebasto
authored andcommitted
qml: Added onboarding03.qml
- The page correponds to the block clock page in design file. - The block clock is temporarily replaced with the Bitcoin core app icon Github-Pull: bitcoin-core#124 Rebased-From: a1bf658
1 parent 18afaca commit 8906342

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

src/qml/BitcoinApp/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ qt6_add_qml_module(bitcoin_qml
1919
onboarding01b.qml
2020
onboarding01c.qml
2121
onboarding02.qml
22+
onboarding03.qml
2223
stub.qml
2324
RESOURCES
2425
${PROJECT_SOURCE_DIR}/src/qt/res/icons/bitcoin.png

src/qml/BitcoinApp/onboarding03.qml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// Copyright (c) 2022 The Bitcoin Core developers
2+
// Distributed under the MIT software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
5+
import QtQuick
6+
import QtQuick.Controls
7+
import QtQuick.Layouts
8+
import BitcoinApp.Controls
9+
10+
Page {
11+
background: null
12+
clip: true
13+
Layout.fillWidth: true
14+
header: RowLayout {
15+
height: 50
16+
Layout.leftMargin: 10
17+
Loader {
18+
active: true
19+
visible: active
20+
sourceComponent: Item {
21+
width: 73
22+
height: 46
23+
RowLayout {
24+
anchors.fill: parent
25+
spacing: 0
26+
Image {
27+
source: ":/qt/qml/BitcoinApp/res/icons/caret-left.png"
28+
mipmap: true
29+
Layout.preferredWidth: 30
30+
Layout.preferredHeight: 30
31+
Layout.alignment: Qt.AlignVCenter
32+
fillMode: Image.PreserveAspectFit
33+
}
34+
Text {
35+
Layout.alignment: Qt.AlignVCenter
36+
text: "Back"
37+
color: Theme.color.neutral9
38+
font.family: "Inter"
39+
font.styleName: "Semi Bold"
40+
font.pixelSize: 18
41+
}
42+
}
43+
MouseArea {
44+
anchors.fill: parent
45+
onClicked: swipeView.currentIndex -= 1
46+
}
47+
}
48+
}
49+
}
50+
ColumnLayout {
51+
width: 600
52+
spacing: 0
53+
anchors.top: parent.top
54+
anchors.horizontalCenter: parent.horizontalCenter
55+
Image {
56+
Layout.topMargin: 20
57+
Layout.alignment: Qt.AlignCenter
58+
source: "image://images/app"
59+
sourceSize.width: 200
60+
sourceSize.height: 200
61+
}
62+
Header {
63+
Layout.fillWidth: true
64+
bold: true
65+
header: qsTr("The block clock")
66+
headerMargin: 30
67+
description: qsTr("The Bitcoin network targets a new block every\n10 minutes. Sometimes it's faster and sometimes slower.\n\nThe block clock indicates each block on a dial\nthat represents the current day.")
68+
descriptionMargin: 20
69+
}
70+
ContinueButton {
71+
Layout.alignment: Qt.AlignCenter
72+
Layout.topMargin: 40
73+
text: "Next"
74+
onClicked: swipeView.incrementCurrentIndex()
75+
}
76+
}
77+
}

0 commit comments

Comments
 (0)