Allow BlockClock to scale and maintain 1/3 of the available window real estate #306

Closed
jarolrod wants to merge 5 commits from scale-noderunner-window into main AGit
jarolrod commented 2023-03-29 08:24:00 +00:00 (Migrated from github.com)

Follow up can allow to customize this scaling in settings.

small window size

master pr
master-1 Screen Shot 2023-04-20 at 2 55 23 PM

large window size

master pr
master-2 Screen Shot 2023-04-20 at 2 55 28 PM

Windows
Intel macOS
Apple Silicon macOS
ARM64 Android

Follow up can allow to customize this scaling in settings. #### small window size | master | pr | | ------ | -- | | <img width="752" alt="master-1" src="https://user-images.githubusercontent.com/23396902/228473697-14d3c6ff-7d20-4886-9c7f-09120ef62e4e.png"> | <img width="752" alt="Screen Shot 2023-04-20 at 2 55 23 PM" src="https://user-images.githubusercontent.com/23396902/233461894-04d24b4f-92f2-4ee3-8c36-c0376c68a750.png"> | #### large window size | master | pr | | ------ | -- | | <img width="1920" alt="master-2" src="https://user-images.githubusercontent.com/23396902/228473960-1a71c9a0-9071-407f-bb54-e43390255857.png"> | <img width="1728" alt="Screen Shot 2023-04-20 at 2 55 28 PM" src="https://user-images.githubusercontent.com/23396902/233461974-7b3a6d48-e2a8-4bc5-913a-fa5a96cb1ec6.png"> | [![Windows](https://img.shields.io/badge/OS-Windows-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/unsecure_win_gui.zip?branch=pull/306) [![Intel macOS](https://img.shields.io/badge/OS-Intel%20macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/unsecure_mac_gui.zip?branch=pull/306) [![Apple Silicon macOS](https://img.shields.io/badge/OS-Apple%20Silicon%20macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/unsecure_mac_arm64_gui.zip?branch=pull/306) [![ARM64 Android](https://img.shields.io/badge/OS-Android-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/unsecure_android_apk.zip?branch=pull/306)
jarolrod (Migrated from github.com) reviewed 2023-03-29 08:36:34 +00:00
jarolrod (Migrated from github.com) commented 2023-03-29 08:36:33 +00:00

Allowing for different scale factors is as easy as changing the number 3 here

Allowing for different scale factors is as easy as changing the number 3 here
johnny9 commented 2023-03-29 14:05:33 +00:00 (Migrated from github.com)

Concept ACK

This is great, glad to see that just increasing the icon size resolves the icon scaling problem. My preference would be 2/3 of the width/height but i'll leave that to the designers to decide on a default.

Concept ACK This is great, glad to see that just increasing the icon size resolves the icon scaling problem. My preference would be 2/3 of the width/height but i'll leave that to the designers to decide on a default.
johnny9 (Migrated from github.com) reviewed 2023-03-30 03:58:00 +00:00
johnny9 (Migrated from github.com) left a comment

I think the scaling logic for the dial looks great. I'm not sure about the network indicator scaling and having the two scale off of the their parent's parent width/height. It breaks the encapsulation.

I think the scaling logic for the dial looks great. I'm not sure about the network indicator scaling and having the two scale off of the their parent's parent width/height. It breaks the encapsulation.
johnny9 (Migrated from github.com) commented 2023-03-30 03:27:06 +00:00

I don't think these properties are needed. You can reference the parent with root.parent.width and root.parent.height.

I don't think these properties are needed. You can reference the parent with root.parent.width and root.parent.height.
johnny9 (Migrated from github.com) commented 2023-03-30 03:29:56 +00:00

I understand why you did it here to match the original design, but I think making the size of this component depend on the size of the dial creates the wierd logic with having to know more about the parents layout than it should.

I understand why you did it here to match the original design, but I think making the size of this component depend on the size of the dial creates the wierd logic with having to know more about the parents layout than it should.
jarolrod commented 2023-03-31 01:40:10 +00:00 (Migrated from github.com)

Updated from 87b9f59 to 71a1d99, compare

Changes:

  • block clock takes up half the space
  • Network Indicator doesn't scale, stays fixed size
Updated from [87b9f59 ](https://github.com/bitcoin-core/gui-qml/commit/87b9f59753e105a5cd73e3b3a62d727680a8ece0)to [71a1d99](https://github.com/bitcoin-core/gui-qml/commit/71a1d99a0c6c0fa3db8a884bdf04a238b40d704c), [compare](https://github.com/bitcoin-core/gui-qml/compare/87b9f59753e105a5cd73e3b3a62d727680a8ece0..71a1d99a0c6c0fa3db8a884bdf04a238b40d704c) Changes: - block clock takes up half the space - Network Indicator doesn't scale, stays fixed size
jarolrod (Migrated from github.com) reviewed 2023-03-31 03:53:23 +00:00
jarolrod (Migrated from github.com) commented 2023-03-31 03:53:23 +00:00

I think its better for clarity, and this in a small way documents what the proportions are based on by default - coming from the design file

I think its better for clarity, and this in a small way documents what the proportions are based on by default - coming from the design file
jarolrod commented 2023-03-31 07:54:41 +00:00 (Migrated from github.com)

Updated from 71a1d99 to d138d1c, compare

Changes: block clock is now 5/12 in size by default, this is halfway between 1/2 and 1/3.

Updated from [71a1d99 ](https://github.com/bitcoin-core/gui-qml/commit/71a1d99a0c6c0fa3db8a884bdf04a238b40d704c)to [d138d1c](https://github.com/bitcoin-core/gui-qml/commit/d138d1c06873dab390ca89d80e22cb337ddecbf4), [compare](https://github.com/bitcoin-core/gui-qml/compare/71a1d99a0c6c0fa3db8a884bdf04a238b40d704c..d138d1c06873dab390ca89d80e22cb337ddecbf4) Changes: block clock is now 5/12 in size by default, this is halfway between 1/2 and 1/3.
johnny9 (Migrated from github.com) approved these changes 2023-04-18 03:11:49 +00:00
johnny9 (Migrated from github.com) left a comment

ACK d138d1c06873dab390ca89d80e22cb337ddecbf4

ACK d138d1c06873dab390ca89d80e22cb337ddecbf4
jarolrod commented 2023-04-20 19:00:15 +00:00 (Migrated from github.com)

Updated from d138d1c to cf6e327, compare

Changes: reverted back to using a scale factor of 1/3. We can fine tune this later

Updated from [d138d1c ](https://github.com/bitcoin-core/gui-qml/commit/d138d1c06873dab390ca89d80e22cb337ddecbf4)to [cf6e327](https://github.com/bitcoin-core/gui-qml/commit/cf6e3275564eff6254baa92d9de4cf394c95fb71), [compare](https://github.com/bitcoin-core/gui-qml/compare/d138d1c06873dab390ca89d80e22cb337ddecbf4..cf6e3275564eff6254baa92d9de4cf394c95fb71) Changes: reverted back to using a scale factor of 1/3. We can fine tune this later
thebagmaster commented 2023-04-20 22:15:41 +00:00 (Migrated from github.com)

ACK cf6e327
seems to scale fine:
1
2

ACK [cf6e327](https://github.com/bitcoin-core/gui-qml/commit/cf6e3275564eff6254baa92d9de4cf394c95fb71) seems to scale fine: ![1](https://user-images.githubusercontent.com/7547321/233555772-644de89c-d08f-472d-bd6f-a6aa7aa2064d.png) ![2](https://user-images.githubusercontent.com/7547321/233555785-5cfe436f-23fa-4ba7-9ad5-93a15c68fd42.png)
jarolrod commented 2023-04-23 02:23:24 +00:00 (Migrated from github.com)

Closing this in favor of keeping everything in https://github.com/bitcoin-core/gui-qml/pull/311

Closing this in favor of keeping everything in https://github.com/bitcoin-core/gui-qml/pull/311
Sign in to join this conversation.
No description provided.