-
Notifications
You must be signed in to change notification settings - Fork 326
Update about logo icon (colour) to denote the chain type of the QT instance in About/ Help Message Window/ Dialog #762
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
base: master
Are you sure you want to change the base?
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsNo conflicts as of last run. LLM Linter (✨ experimental)Possible typos and grammar issues:
No other typographic or grammatical errors affecting comprehension were found. 2025-12-03 |
7398ef4 to
30c235b
Compare
maflcko
left a comment
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.
It may help to show screenshots before and after
src/qt/utilitydialog.cpp
Outdated
| void HelpMessageDialog::setAboutWindowTitle(const NetworkStyle *networkStyle) | ||
| { | ||
| QString aboutTitle = tr("About %1").arg(PACKAGE_NAME); | ||
| if ((networkStyle) && (Params().GetChainType() != ChainType::MAIN)) aboutTitle.append(" " + networkStyle->getTitleAddText()); |
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.
Why would this be nullptr? Seems easier to use a reference that is never null?
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.
I didn't want to touch src/qt/bitcoin.cpp:
Line 568 in db19a7e
| HelpMessageDialog help(nullptr, gArgs.IsArgSet("-version")); |
And I also needed to move where the networkStyle is initialised/ set before the HelpMessageDialog constructor:
Line 607 in db19a7e
| QScopedPointer<const NetworkStyle> networkStyle(NetworkStyle::instantiate(Params().GetChainType())); |
But I can do it if that's better.
Thanks for your review @MarcoFalke, the before screenshot is on the issue #761 but I can bring it here if that makes it clearer. |
hernanmarino
left a comment
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.
tested ACK
MarnixCroes
left a comment
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.
tack 30c235b
BrandonOdiwuor
left a comment
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.
Concept ACK
BrandonOdiwuor
left a comment
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.
Tested ACK 30c235b
|
@GBKS What do you think from a designer's point of view? |
|
Not sure. All info displayed on the About page is fixed details about the software itself, not about the current (test)chain. So modulating the icon or title bar seems confusing, but no strong opinion. |
|
Definitely more consistent this way. |
In that case, shouldn't the logo on the About page be black-toned? |
577d500 to
5556860
Compare
|
Updates:
|
5556860 to
036f070
Compare
|
Rebased. |
|
Concept ACK |
f189e8b to
6287b64
Compare
4612c5f to
5648658
Compare
Adding the networkStyle parameter to the HelpMessageDialog creator on utilitydialog, updating all calls where its instance is being created from bitcoingui.cpp. In the object itself, use this new parameter object to build the about window title and set the icon of the about logo widget.
Introducing a new helper GUIUtil::ShowMessageBox() in order to incorporate the chaintype image in the message box window icon.
5648658 to
da44744
Compare
|
Updates:
|


It fixes #761.
About logo icon is updated now with the correct colour indicating the chain type of the QT instance that user is running (as the splash screen), plus the title of the about window also is updated with the chain type string as in the main window.
Before PR changes screenshot
After PR changes screenshot
Current splash screen screenshot
(this hasn't been touched, just to show consistency with this PR changes)Tested it also with:
bitcoin-qtorbitcoin-qt -chain=main),-regtestand-testnet.