Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Makefile.qt.include
Original file line number Diff line number Diff line change
Expand Up @@ -428,12 +428,12 @@ QML_RES_QML = \
qml/pages/settings/SettingsProxy.qml \
qml/pages/settings/SettingsStorage.qml \
qml/pages/settings/SettingsTheme.qml \
qml/pages/wallet/AddWallet.qml \
qml/pages/wallet/CreateBackup.qml \
qml/pages/wallet/CreateConfirm.qml \
qml/pages/wallet/CreateIntro.qml \
qml/pages/wallet/CreateName.qml \
qml/pages/wallet/CreatePassword.qml \
qml/pages/wallet/CreateWalletWizard.qml \
qml/pages/wallet/DesktopWallets.qml \
qml/pages/wallet/WalletBadge.qml \
qml/pages/wallet/WalletSelect.qml
Expand Down
2 changes: 1 addition & 1 deletion src/qml/bitcoin_qml.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@
<file>pages/settings/SettingsProxy.qml</file>
<file>pages/settings/SettingsStorage.qml</file>
<file>pages/settings/SettingsTheme.qml</file>
<file>pages/wallet/AddWallet.qml</file>
<file>pages/wallet/CreateBackup.qml</file>
<file>pages/wallet/CreateConfirm.qml</file>
<file>pages/wallet/CreateIntro.qml</file>
<file>pages/wallet/CreateName.qml</file>
<file>pages/wallet/CreatePassword.qml</file>
<file>pages/wallet/CreateWalletWizard.qml</file>
<file>pages/wallet/DesktopWallets.qml</file>
<file>pages/wallet/WalletBadge.qml</file>
<file>pages/wallet/WalletSelect.qml</file>
Expand Down
4 changes: 3 additions & 1 deletion src/qml/components/AboutOptions.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import QtQuick.Layouts 1.15
import "../controls"

ColumnLayout {
id: root
signal next
spacing: 4
Setting {
id: websiteLink
Expand Down Expand Up @@ -69,7 +71,7 @@ ColumnLayout {
color: gotoDeveloper.stateColor
}
onClicked: {
aboutSwipe.incrementCurrentIndex()
root.next()
}
}
ExternalPopup {
Expand Down
4 changes: 3 additions & 1 deletion src/qml/components/ConnectionSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import QtQuick.Layouts 1.15
import "../controls"

ColumnLayout {
id: root
signal next
spacing: 4
Setting {
Layout.fillWidth: true
Expand Down Expand Up @@ -69,6 +71,6 @@ ColumnLayout {
actionItem: CaretRightIcon {
color: gotoProxy.stateColor
}
onClicked: connectionSwipe.incrementCurrentIndex()
onClicked: root.next()
}
}
4 changes: 3 additions & 1 deletion src/qml/controls/InformationPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import org.bitcoincore.qt 1.0

Page {
id: root
signal back
signal next
implicitHeight: information.height + continueButton.height + buttonMargin
property alias bannerItem: banner_loader.sourceComponent
property alias detailItem: detail_loader.sourceComponent
Expand Down Expand Up @@ -106,7 +108,7 @@ Page {
anchors.rightMargin: 20
anchors.horizontalCenter: parent.horizontalCenter
text: root.buttonText
onClicked: root.lastPage ? swipeView.finished = true : swipeView.incrementCurrentIndex()
onClicked: root.next()
}
}

Expand Down
35 changes: 26 additions & 9 deletions src/qml/pages/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,35 @@ ApplicationWindow {
property bool finished: false
interactive: false

OnboardingCover {}
OnboardingStrengthen {}
OnboardingBlockclock {}
OnboardingStorageLocation {}
OnboardingStorageAmount {}
OnboardingConnection {}
OnboardingCover {
onNext: swipeView.incrementCurrentIndex()
}
OnboardingStrengthen {
onBack: swipeView.decrementCurrentIndex()
onNext: swipeView.incrementCurrentIndex()
}
OnboardingBlockclock {
onBack: swipeView.decrementCurrentIndex()
onNext: swipeView.incrementCurrentIndex()
}
OnboardingStorageLocation {
onBack: swipeView.decrementCurrentIndex()
onNext: swipeView.incrementCurrentIndex()
}
OnboardingStorageAmount {
onBack: swipeView.decrementCurrentIndex()
onNext: swipeView.incrementCurrentIndex()
}
OnboardingConnection {
onBack: swipeView.decrementCurrentIndex()
onNext: swipeView.finished = true
}

onFinishedChanged: {
optionsModel.onboard()
if (AppMode.walletEnabled && AppMode.isDesktop) {
main.push(desktopWallets)
main.push(addWallet)
main.push(createWalletWizard)
} else {
main.push(node)
}
Expand All @@ -95,8 +112,8 @@ ApplicationWindow {
}

Component {
id: addWallet
AddWallet {
id: createWalletWizard
CreateWalletWizard {
onFinished: {
main.pop()
}
Expand Down
11 changes: 10 additions & 1 deletion src/qml/pages/node/NetworkTraffic.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ InformationPage {
id: settings
property alias trafficGraphScale: root.trafficGraphScale
}

navLeftDetail: NavButton {
iconSource: "image://images/caret-left"
text: qsTr("Back")
onClicked: root.back()
}
navMiddleDetail: Header {
headerBold: true
headerSize: 18
header: qsTr("Network traffic")
}
bannerActive: false
bold: true
headerText: qsTr("Network Traffic")
Expand Down
66 changes: 7 additions & 59 deletions src/qml/pages/node/NodeSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -122,74 +122,33 @@ Item {
Component {
id: about_page
SettingsAbout {
showHeader: false
navLeftDetail: NavButton {
iconSource: "image://images/caret-left"
text: qsTr("Back")
onClicked: {
nodeSettingsView.pop()
}
}
navMiddleDetail: Header {
headerBold: true
headerSize: 18
header: qsTr("About")
}
devMiddleDetail: Header {
headerBold: true
headerSize: 18
header: qsTr("Developer settings")
}
onBack: nodeSettingsView.pop()
}
}
Component {
id: display_page
SettingsDisplay {
onBackClicked: {
onBack: {
nodeSettingsView.pop()
}
}
}
Component {
id: storage_page
SettingsStorage {
showHeader: false
navLeftDetail: NavButton {
iconSource: "image://images/caret-left"
text: qsTr("Back")
onClicked: {
nodeSettingsView.pop()
}
}
navMiddleDetail: Header {
headerBold: true
headerSize: 18
header: qsTr("Storage settings")
}
onBack: nodeSettingsView.pop()
}
}
Component {
id: connection_page
SettingsConnection {
showHeader: false
navLeftDetail: NavButton {
iconSource: "image://images/caret-left"
text: qsTr("Back")
onClicked: {
nodeSettingsView.pop()
}
}
navMiddleDetail: Header {
headerBold: true
headerSize: 18
header: qsTr("Connection settings")
}
onBack: nodeSettingsView.pop()
}
}
Component {
id: peers_page
Peers {
onBackClicked: {
onBack: {
nodeSettingsView.pop()
peerTableModel.stopAutoRefresh();
}
Expand All @@ -201,7 +160,7 @@ Item {
Component {
id: peer_details
PeerDetails {
onBackClicked: {
onBack: {
nodeSettingsView.pop()
}
}
Expand All @@ -210,18 +169,7 @@ Item {
id: networktraffic_page
NetworkTraffic {
showHeader: false
navLeftDetail: NavButton {
iconSource: "image://images/caret-left"
text: qsTr("Back")
onClicked: {
nodeSettingsView.pop()
}
}
navMiddleDetail: Header {
headerBold: true
headerSize: 18
header: qsTr("Network traffic")
}
onBack: nodeSettingsView.pop()
}
}
}
6 changes: 3 additions & 3 deletions src/qml/pages/node/PeerDetails.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import "../../components"

Page {
id: root
signal backClicked()
signal back()

property PeerDetailsModel details

Connections {
target: details
function onDisconnected() {
root.backClicked()
root.back()
}
}

Expand All @@ -27,7 +27,7 @@ Page {
leftItem: NavButton {
iconSource: "image://images/caret-left"
text: qsTr("Back")
onClicked: root.backClicked()
onClicked: root.back()
}
centerItem: Header {
headerBold: true
Expand Down
4 changes: 2 additions & 2 deletions src/qml/pages/node/Peers.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import "../../controls"
import "../../components"

Page {
signal backClicked
signal back
signal peerSelected(PeerDetailsModel peerDetails)

id: root
Expand All @@ -21,7 +21,7 @@ Page {
leftItem: NavButton {
iconSource: "image://images/caret-left"
text: qsTr("Back")
onClicked: root.backClicked()
onClicked: root.back()
}
centerItem: Header {
headerBold: true
Expand Down
3 changes: 2 additions & 1 deletion src/qml/pages/onboarding/OnboardingBlockclock.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ import QtQuick.Layouts 1.15
import "../../controls"

InformationPage {
id: root
navLeftDetail: NavButton {
iconSource: "image://images/caret-left"
text: qsTr("Back")
onClicked: swipeView.decrementCurrentIndex()
onClicked: root.back()
}
bannerItem: Image {
source: Theme.image.blocktime
Expand Down
14 changes: 7 additions & 7 deletions src/qml/pages/onboarding/OnboardingConnection.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import "../../components"
import "../settings"

Page {
id: root
signal back
signal next
background: null
clip: true
SwipeView {
Expand All @@ -21,7 +24,7 @@ Page {
navLeftDetail: NavButton {
iconSource: "image://images/caret-left"
text: qsTr("Back")
onClicked: swipeView.decrementCurrentIndex()
onClicked: root.back()
}
bannerItem: Image {
Layout.topMargin: 20
Expand All @@ -47,14 +50,11 @@ Page {
lastPage: true
buttonText: qsTr("Next")
buttonMargin: 20
onNext: root.next()
}
SettingsConnection {
navRightDetail: NavButton {
text: qsTr("Done")
onClicked: {
connections.decrementCurrentIndex()
}
}
onboarding: true
onBack: connections.decrementCurrentIndex()
}
}
}
12 changes: 5 additions & 7 deletions src/qml/pages/onboarding/OnboardingCover.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import "../../components"
import "../settings"

Page {
id: root
signal next
background: null
clip: true
SwipeView {
Expand Down Expand Up @@ -48,15 +50,11 @@ Page {
descriptionSize: 24
subtext: qsTr("100% open-source & open-design")
buttonText: qsTr("Start")
onNext: root.next()
}
SettingsAbout {
navLeftDetail: NavButton {
iconSource: "image://images/caret-left"
text: qsTr("Back")
onClicked: {
introductions.decrementCurrentIndex()
}
}
onboarding: true
onBack: introductions.decrementCurrentIndex()
}
}
}
Loading
Loading