Use caret-right icon instead of greater-than text symbol#144
Conversation
shaavan
left a comment
There was a problem hiding this comment.
Concept ACK
- I can see the visual difference between master and PR while testing.
Screenshot:
| Master | PR |
|---|---|
![]() |
![]() |
- This PR also solves the issue of the misaligned arrow of the developer options selector.
Suggestion:
- There is one more instance of setting which need to be addressed here. The ">" for the Proxy settings option on the Connection Settings page should be converted to the icon.
1c17b77 to
1dcdac6
Compare
|
updated from from 1c17b77 to 1dcdac6 (pr144.01 -> pr144.02, diff) Changes:
|
1dcdac6 to
36bc09d
Compare
36bc09d to
f9f6921
Compare
| icon.source: "image://images/caret-right" | ||
| icon.color: Theme.color.neutral9 | ||
| icon.height: 18 | ||
| icon.width: 18 | ||
| background: null |
There was a problem hiding this comment.
Why are the icon.color and background properties are specified for some elements, but not for others?
There was a problem hiding this comment.
Button is a qml type, so we need to specify the icon.color, background value explicitly for each time the Button is used as actionItem, which this PR does.
Whereas, the ExternalLink is a custom-defined component that already employs the respective icon.color, and background value in its definition, so we need not specify that separately when using it.
In src/qml/controls/ExternalLink.qml
sourceComponent: Button {
icon.source: root.iconSource
icon.color: Theme.color.neutral9
icon.height: root.iconHeight
icon.width: root.iconWidth
background: null
onClicked: Qt.openUrlExternally(link)
}
shaavan
left a comment
There was a problem hiding this comment.
ACK f9f6921
The ExternalLink and Button components replace all the instances of greater-than text symbol and are used appropriately.
I have two ideas to discuss that we can consider incorporating in this PR or in a follow-up.
- The
Button{}is used twice as anactionItemin the current implementation of GUI. There is a chance that we could need to use this Button configuration multiple times as the development progresses. So we can think about extracting this code as a separate component. - There is only one instance of usage of
ExternalLink{}where the default values foriconWidth, andiconHeight(30, 30)are used. All other usage instances modify these values to(18, 18). Changing the default values inExternalLink.qmlfor these properties will save up on redundant code.
Github-Pull: bitcoin-core#144 Rebased-From: f9f6921
Github-Pull: bitcoin-core#144 Rebased-From: f9f6921
Github-Pull: bitcoin-core#144 Rebased-From: f9f6921
…er-than text symbol e17241d qml: use caret-right icon instead of greater than symbol (jarolrod) Pull request description: Mainly only relevant in the `AboutOptions` component for now. | master | pr | | ------- | -- | | <img width="752" alt="Screen Shot 2022-08-03 at 6 45 51 AM" src="https://user-images.githubusercontent.com/23396902/182590655-4e765f99-8de4-4782-bc12-6682b63b1eeb.png"> | <img width="752" alt="Screen Shot 2022-08-06 at 7 40 39 PM" src="https://user-images.githubusercontent.com/23396902/183269335-b8dd6894-14e9-47b5-8d43-6d2f540cbb27.png"> | [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/144) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/144) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/144) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/144) ACKs for top commit: shaavan: ACK e17241d Tree-SHA512: ce2a5fd72a1e8f84d1d0d5ddf8fb06f49e2bce684dd3db603a4c9aa937f45d2e13bbc1f279c70178f3cc117cd9cd71db522e1b7bd20f7b41aea5db8ec7bb5b69
…er-than text symbol e17241df0c355d808226abfd608b7408646eb20b qml: use caret-right icon instead of greater than symbol (jarolrod) Pull request description: Mainly only relevant in the `AboutOptions` component for now. | master | pr | | ------- | -- | | <img width="752" alt="Screen Shot 2022-08-03 at 6 45 51 AM" src="https://user-images.githubusercontent.com/23396902/182590655-4e765f99-8de4-4782-bc12-6682b63b1eeb.png"> | <img width="752" alt="Screen Shot 2022-08-06 at 7 40 39 PM" src="https://user-images.githubusercontent.com/23396902/183269335-b8dd6894-14e9-47b5-8d43-6d2f540cbb27.png"> | [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/144) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/144) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/144) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/144) ACKs for top commit: shaavan: ACK e17241df0c355d808226abfd608b7408646eb20b Tree-SHA512: ce2a5fd72a1e8f84d1d0d5ddf8fb06f49e2bce684dd3db603a4c9aa937f45d2e13bbc1f279c70178f3cc117cd9cd71db522e1b7bd20f7b41aea5db8ec7bb5b69



Mainly only relevant in the
AboutOptionscomponent for now.