-
Notifications
You must be signed in to change notification settings - Fork 50
Introducing Reusable Setting Views #197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ import QtQuick.Controls 2.15 | |
import QtQuick.Layouts 1.15 | ||
import "../../controls" | ||
import "../../components" | ||
import "../settings" | ||
|
||
Page { | ||
background: null | ||
|
@@ -17,11 +18,48 @@ Page { | |
anchors.fill: parent | ||
interactive: false | ||
orientation: Qt.Vertical | ||
Loader { | ||
source:"onboarding05a.qml" | ||
InformationPage { | ||
Layout.fillWidth: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove |
||
navLeftDetail: NavButton { | ||
iconSource: "image://images/caret-left" | ||
text: qsTr("Back") | ||
onClicked: swipeView.decrementCurrentIndex() | ||
} | ||
bannerActive: false | ||
bold: true | ||
headerText: qsTr("Storage") | ||
headerMargin: 0 | ||
description: qsTr("Data retrieved from the Bitcoin network is stored on your device.\nYou have 500GB of storage available.") | ||
descriptionMargin: 10 | ||
detailActive: true | ||
detailItem: ColumnLayout { | ||
spacing: 0 | ||
StorageOptions { | ||
Layout.maximumWidth: 450 | ||
Layout.alignment: Qt.AlignCenter | ||
} | ||
TextButton { | ||
Layout.topMargin: 30 | ||
Layout.fillWidth: true | ||
text: qsTr("Detailed settings") | ||
textSize: 18 | ||
textColor: "#F7931A" | ||
onClicked: { | ||
storages.incrementCurrentIndex() | ||
swipeView.inSubPage = true | ||
} | ||
} | ||
} | ||
buttonText: qsTr("Next") | ||
} | ||
Loader { | ||
source:"onboarding05b.qml" | ||
SettingsStorage { | ||
navRightDetail: NavButton { | ||
text: qsTr("Done") | ||
onClicked: { | ||
storages.decrementCurrentIndex() | ||
swipeView.inSubPage = false | ||
} | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ import QtQuick.Controls 2.15 | |
import QtQuick.Layouts 1.15 | ||
import "../../controls" | ||
import "../../components" | ||
import "../settings" | ||
|
||
Page { | ||
background: null | ||
|
@@ -17,11 +18,46 @@ Page { | |
anchors.fill: parent | ||
interactive: false | ||
orientation: Qt.Vertical | ||
Loader { | ||
source:"onboarding06a.qml" | ||
InformationPage { | ||
Layout.fillWidth: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove |
||
navLeftDetail: NavButton { | ||
iconSource: "image://images/caret-left" | ||
text: qsTr("Back") | ||
onClicked: swipeView.decrementCurrentIndex() | ||
} | ||
bannerItem: Image { | ||
Layout.topMargin: 20 | ||
Layout.alignment: Qt.AlignCenter | ||
source: Theme.image.storage | ||
sourceSize.width: 200 | ||
sourceSize.height: 200 | ||
} | ||
bold: true | ||
headerText: qsTr("Starting initial download") | ||
headerMargin: 30 | ||
description: qsTr("The application will connect to the Bitcoin network and start downloading and verifying transactions.\n\nThis may take several hours, or even days, based on your connection.") | ||
descriptionMargin: 20 | ||
detailActive: true | ||
detailItem: TextButton { | ||
text: qsTr("Connection settings") | ||
textSize: 18 | ||
textColor: Theme.color.orange | ||
onClicked: { | ||
connections.incrementCurrentIndex() | ||
swipeView.inSubPage = true | ||
} | ||
} | ||
lastPage: true | ||
buttonText: qsTr("Next") | ||
} | ||
Loader { | ||
source:"onboarding06b.qml" | ||
SettingsConnection { | ||
navRightDetail: NavButton { | ||
text: qsTr("Done") | ||
onClicked: { | ||
connections.decrementCurrentIndex() | ||
swipeView.inSubPage = false | ||
} | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,14 +10,6 @@ import "../../components" | |
|
||
InformationPage { | ||
Layout.fillWidth: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove |
||
navLeftDetail: NavButton { | ||
iconSource: "image://images/caret-left" | ||
text: qsTr("Back") | ||
onClicked: { | ||
introductions.decrementCurrentIndex() | ||
swipeView.inSubPage = false | ||
} | ||
} | ||
bannerActive: false | ||
bold: true | ||
headerText: qsTr("About") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,6 @@ InformationPage { | |
background: null | ||
Layout.fillWidth: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove |
||
clip: true | ||
navRightDetail: NavButton { | ||
text: qsTr("Done") | ||
onClicked: { | ||
connections.decrementCurrentIndex() | ||
swipeView.inSubPage = false | ||
} | ||
} | ||
bannerActive: false | ||
bold: true | ||
headerText: qsTr("Connection settings") | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SwipeViews don't handle Layout properties. Think this can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for spotting these, it's a bad habit of mine to place this until the view is working correctly. Since you've already opened a PR to address them, i've left this as is.