-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Backport bitcoin#16254 and remove hires theme #3217
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
Conversation
099e4b9 Set AA_EnableHighDpiScaling attribute early (Hennadii Stepanov) Pull request description: Running `bitcoin-qt` compiled against Qt 5.12.4 causes a warning: ``` hebasto@bionic-qt:~/bitcoin$ src/qt/bitcoin-qt Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created. ``` This PR fixes this issue. From Qt docs: - [Qt::AA_EnableHighDpiScaling](https://doc.qt.io/qt-5/qt.html#ApplicationAttribute-enum): > Enables high-DPI scaling in Qt on supported platforms (see also High DPI Displays). _Supported platforms are X11, Windows and Android._ Enabling makes Qt scale the main (device independent) coordinate system according to display scale factors provided by the operating system. This corresponds to setting the `QT_AUTO_SCREEN_SCALE_FACTOR` environment variable to 1. This attribute must be set before `QGuiApplication` is constructed. This value was added in Qt 5.6. - [QCoreApplication::setAttribute()](https://doc.qt.io/qt-5/qcoreapplication.html#setAttribute) ACKs for commit 099e4b: MarcoFalke: ACK 099e4b9 jonasschnelli: utACK 099e4b9 fanquake: ACK 099e4b9. Did some testing on `Bionic` and `Windows 10` (using VirtualBox). I couldn't see any obvious visual difference, but given Marco's screens above, this change is obviously better. I also checked that there wasn't any sort of regression on macOS. Tree-SHA512: 1965a427ee14ffb3871bac317685032406cf02d1fa2b2dc11c8b643bfe4ba09195674d149d1e41752f14c0d000446b35e142f3ce60d987ba97082fd7ee39a094
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.
👍
Can confirm that non-hires light theme looks fine on my machine.
partially-tested-ACK
|
@jhodges10 can you maybe test this PR and confirm that it looks fine on HiRes? |
nmarley
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.
Looks the same for me on normal resolution
slightly tested ACK
* Copy light(-hires).css -> dark(-hires).css (with no changes yet) * Add dark(-hires).css to makefile/qrc and show them in theme selector * Dark theme (css part) * Do not style unit selector in status bar via platform styles, use css instead * No coloring via forms (*.ui) * Implement and use helpers to style parts of rich text differently for light and dark themes * Remove dark-hires due to #3217 * Revert changes to light-hires.css to avoid merge conflicts with #3217
* Copy light(-hires).css -> dark(-hires).css (with no changes yet) * Add dark(-hires).css to makefile/qrc and show them in theme selector * Dark theme (css part) * Do not style unit selector in status bar via platform styles, use css instead * No coloring via forms (*.ui) * Implement and use helpers to style parts of rich text differently for light and dark themes * Remove dark-hires due to dashpay#3217 * Revert changes to light-hires.css to avoid merge conflicts with dashpay#3217 Signed-off-by: cevap <[email protected]>
* Copy light(-hires).css -> dark(-hires).css (with no changes yet) * Add dark(-hires).css to makefile/qrc and show them in theme selector * Dark theme (css part) * Do not style unit selector in status bar via platform styles, use css instead * No coloring via forms (*.ui) * Implement and use helpers to style parts of rich text differently for light and dark themes * Remove dark-hires due to dashpay#3217 * Revert changes to light-hires.css to avoid merge conflicts with dashpay#3217 Signed-off-by: cevap <[email protected]>
* Copy light(-hires).css -> dark(-hires).css (with no changes yet) * Add dark(-hires).css to makefile/qrc and show them in theme selector * Dark theme (css part) * Do not style unit selector in status bar via platform styles, use css instead * No coloring via forms (*.ui) * Implement and use helpers to style parts of rich text differently for light and dark themes * Remove dark-hires due to dashpay#3217 * Revert changes to light-hires.css to avoid merge conflicts with dashpay#3217 Signed-off-by: cevap <[email protected]>
Backporting bitcoin#16254 fixes Qt's HiRes support, which was meant to be enabled since a long time already. But due to
Qt::AA_EnableHighDpiScalingbeing enabled after the instantiation ofBitcoinApplication, this never actually worked.Fixing this also allows us to remove the hires theme, as the normal themes already work perfectly fine on a HiDpi monitor now.