mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:18:39 +00:00
Add and demo ConnectionSettings and ContinueButton components #101
No reviewers
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml!101
Loading…
Reference in a new issue
No description provided.
Delete branch "connection-settings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This introduces the
ConnectionSettingscomponent, which represents the detailed connections settings page as designed in the main design file. It also introduces the controls the component depends on,SettingandOptionSwitch. Missing is the Text button that is used for settings which require an input value, because the functionality of that component needs to be discussed.The
Settingcontrol represents an individual setting of theConnectionSettingscomponents, this component uses theHeadercontrol for its text.OptionSwitchrepresents the toggle button shown in the design.To accomplish a proper demo of this component, this places our forms (ConnectionOptions and ConnectionSettings) into a StackLayout. The
ContinueButtonis introduced to advance/rewind the stack. APageIndicatoris added to highlight the functionality of the demo.Additionally, to fix the annoying behavior of the stub currently, this makes the dimensions of the stub page dependent on it's contents width. 😄
Image of added components:

updated from 8f801eb -> 533993f
Changes:
height: sourceComponent.heightimplicitHeightupdated from 533993f -> 5d10e90
changes:
updated from 5d10e90 -> e12442b
Changes:
FYI stack doesn't support animation.
Is it a blocker for this PR?
No.
yeah it's just used here for simplicity of the demo. #106 uses an uninteractive SwipeView which has the animations we want.
ACK e12442b5777ebef8e0e07c5314b1671367c8d5fd, tested on Linux Mint 20.3 (with depends).
As this PR has no conflicts with #110, going to merge it.Could the last commit (a demo) be dropped from this PR, to avoid conflicts with #110?
updated from e12442b ->
c026a3eChanges: drop last commit to avoid conflict with #110. The demo of this PR has been moved to: connection-settings-demo
re-ACK
c026a3e85cDon't forget about translations? Use
qsTr()?This could be automatic, here's a simple approach that doesn't take into account if
visibleproperty:Might want these required?
This is not really a grid.
Addressed in #111
Addressed in #111
Addressed in #111
Addressed in #111
What would be a more appropriate Layout for it?
A ColumnLayout with a nested RowLayout