Add and demo ConnectionSettings and ContinueButton components #101

Manually merged
jarolrod merged 4 commits from connection-settings into main 2022-01-10 17:47:04 +00:00 AGit
jarolrod commented 2022-01-04 02:36:51 +00:00 (Migrated from github.com)

This introduces the ConnectionSettings component, which represents the detailed connections settings page as designed in the main design file. It also introduces the controls the component depends on, Setting and OptionSwitch. 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 Setting control represents an individual setting of the ConnectionSettings components, this component uses the Header control for its text. OptionSwitch represents 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 ContinueButton is introduced to advance/rewind the stack. A PageIndicator is 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:
Screen Shot 2022-01-03 at 9 28 59 PM

Windows
macOS
Android

This introduces the `ConnectionSettings` component, which represents the [detailed connections settings page](https://www.figma.com/file/GaCoOSNHB2yMB9ThiDtred/Bitcoin-Core-App-Main?node-id=2777%3A67296) as designed in the [main design file](https://www.figma.com/file/GaCoOSNHB2yMB9ThiDtred/Bitcoin-Core-App-Main?node-id=1035%3A1883). It also introduces the controls the component depends on, `Setting` and `OptionSwitch`. 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 `Setting` control represents an individual setting of the `ConnectionSettings` components, this component uses the `Header` control for its text. `OptionSwitch` represents 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 `ContinueButton` is introduced to advance/rewind the stack. A `PageIndicator` is 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:** <img width="529" alt="Screen Shot 2022-01-03 at 9 28 59 PM" src="https://user-images.githubusercontent.com/23396902/148001662-d374d6c7-5335-4406-a4fa-cbb205aa8d86.png"> [![Windows](https://img.shields.io/badge/OS-Windows-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/101) [![macOS](https://img.shields.io/badge/OS-macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/101) [![Android](https://img.shields.io/badge/OS-Android-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/101)
jarolrod commented 2022-01-05 18:54:44 +00:00 (Migrated from github.com)

updated from 8f801eb -> 533993f

Changes:

  • rebased over master
  • updated include versions
  • Settings.qml
    • Setting control base type changed from Item to control
    • removed instances of height: sourceComponent.height
    • removed setting implicitHeight
  • dropped change on the stubs size as it's not relevant to the goal of this PR
updated from 8f801eb -> 533993f Changes: - rebased over master - updated include versions - Settings.qml - Setting control base type changed from Item to control - removed instances of `height: sourceComponent.height` - removed setting `implicitHeight` - dropped change on the stubs size as it's not relevant to the goal of this PR
jarolrod commented 2022-01-05 19:30:08 +00:00 (Migrated from github.com)

updated from 533993f -> 5d10e90

changes:

  • rebase over master as #100 was merged
updated from 533993f -> 5d10e90 changes: - rebase over master as #100 was merged
jarolrod commented 2022-01-05 19:48:18 +00:00 (Migrated from github.com)

updated from 5d10e90 -> e12442b

Changes:

  • in settings.qml bind visible to active
updated from 5d10e90 -> e12442b Changes: - in settings.qml bind visible to active
promag (Migrated from github.com) reviewed 2022-01-06 12:25:28 +00:00
promag (Migrated from github.com) commented 2022-01-06 12:25:28 +00:00

FYI stack doesn't support animation.

FYI stack doesn't support animation.
hebasto (Migrated from github.com) reviewed 2022-01-06 13:44:34 +00:00
hebasto (Migrated from github.com) commented 2022-01-06 13:44:34 +00:00

Is it a blocker for this PR?

Is it a blocker for this PR?
promag (Migrated from github.com) reviewed 2022-01-06 13:57:33 +00:00
promag (Migrated from github.com) commented 2022-01-06 13:57:33 +00:00

No.

No.
jarolrod (Migrated from github.com) reviewed 2022-01-06 15:29:03 +00:00
jarolrod (Migrated from github.com) commented 2022-01-06 15:29:03 +00:00

yeah it's just used here for simplicity of the demo. #106 uses an uninteractive SwipeView which has the animations we want.

yeah it's just used here for simplicity of the demo. #106 uses an uninteractive SwipeView which has the animations we want.
hebasto (Migrated from github.com) approved these changes 2022-01-09 18:55:51 +00:00
hebasto (Migrated from github.com) left a comment

ACK e12442b5777ebef8e0e07c5314b1671367c8d5fd, tested on Linux Mint 20.3 (with depends).

As this PR has no conflicts with #110, going to merge it.

ACK e12442b5777ebef8e0e07c5314b1671367c8d5fd, tested on Linux Mint 20.3 (with depends). ~As this PR has no conflicts with #110, going to merge it.~
hebasto commented 2022-01-09 19:19:47 +00:00 (Migrated from github.com)

Could the last commit (a demo) be dropped from this PR, to avoid conflicts with #110?

Could the last commit (a demo) be dropped from this PR, to avoid conflicts with #110?
jarolrod commented 2022-01-10 16:45:49 +00:00 (Migrated from github.com)

updated from e12442b -> c026a3e

Changes: drop last commit to avoid conflict with #110. The demo of this PR has been moved to: connection-settings-demo

updated from e12442b -> c026a3e Changes: drop last commit to avoid conflict with #110. The demo of this PR has been moved to: [connection-settings-demo](https://github.com/jarolrod/gui-qml/tree/connection-settings-demo)
hebasto (Migrated from github.com) approved these changes 2022-01-10 17:43:21 +00:00
hebasto (Migrated from github.com) left a comment

re-ACK c026a3e85c

re-ACK c026a3e85c8e21519c85b840a4ee8e8d444eb88d
promag (Migrated from github.com) reviewed 2022-01-11 09:56:49 +00:00
promag (Migrated from github.com) commented 2022-01-10 15:24:24 +00:00

Don't forget about translations? Use qsTr()?

Don't forget about translations? Use `qsTr()`?
promag (Migrated from github.com) commented 2022-01-10 15:54:47 +00:00
Math.round((parent.height - height) / 2)
```qml Math.round((parent.height - height) / 2) ```
promag (Migrated from github.com) commented 2022-01-10 15:29:54 +00:00

This could be automatic, here's a simple approach that doesn't take into account if visible property:

property bool last: parent && root == parent.children[parent.children.length - 1]
This could be automatic, here's a simple approach that doesn't take into account if `visible` property: ```qml property bool last: parent && root == parent.children[parent.children.length - 1] ```
promag (Migrated from github.com) commented 2022-01-10 15:27:03 +00:00

Might want these required?

Might want these required?
promag (Migrated from github.com) commented 2022-01-10 15:26:55 +00:00

This is not really a grid.

This is not really a grid.
shaavan (Migrated from github.com) reviewed 2022-01-13 11:09:31 +00:00
shaavan (Migrated from github.com) commented 2022-01-13 11:09:31 +00:00

Addressed in #111

Addressed in #111
shaavan (Migrated from github.com) reviewed 2022-01-13 11:09:40 +00:00
shaavan (Migrated from github.com) commented 2022-01-13 11:09:40 +00:00

Addressed in #111

Addressed in #111
shaavan (Migrated from github.com) reviewed 2022-01-13 11:09:45 +00:00
shaavan (Migrated from github.com) commented 2022-01-13 11:09:45 +00:00

Addressed in #111

Addressed in #111
shaavan (Migrated from github.com) reviewed 2022-01-13 11:09:49 +00:00
shaavan (Migrated from github.com) commented 2022-01-13 11:09:49 +00:00

Addressed in #111

Addressed in #111
shaavan (Migrated from github.com) reviewed 2022-01-13 11:10:17 +00:00
shaavan (Migrated from github.com) commented 2022-01-13 11:10:17 +00:00

What would be a more appropriate Layout for it?

What would be a more appropriate Layout for it?
jarolrod (Migrated from github.com) reviewed 2022-01-13 14:28:22 +00:00
jarolrod (Migrated from github.com) commented 2022-01-13 14:28:22 +00:00

A ColumnLayout with a nested RowLayout

A ColumnLayout with a nested RowLayout
Sign in to join this conversation.
No description provided.