Skip to content
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

Dark Mode fixes/portability #366

Merged
merged 2 commits into from
Jul 1, 2021
Merged

Conversation

luke-jr
Copy link
Member

@luke-jr luke-jr commented Jun 22, 2021

The changes to support macOS "Dark Mode" are valid for any platform, and should work so long as Qt implements the PaletteChange event. (Worst case, we're no worse off with trying.)

Additionally, we shouldn't block the parent classes from implementing event handlers. Who knows what side effects that could have.

@hebasto hebasto added the UI All about "look and feel" label Jun 22, 2021
@hebasto
Copy link
Member

hebasto commented Jun 22, 2021

... we shouldn't block the parent classes from implementing event handlers. Who knows what side effects that could have.

Looks reasonable.

@bitcoin-core bitcoin-core deleted a comment Jun 23, 2021
@jonatack
Copy link
Member

Concept ACK. Lightly tested, debug build is clean. I have my system set up (on Debian testing) so the GUI follows my system settings, and this change doesn't affect it; everything looks the same for me.

@bitcoin-core bitcoin-core deleted a comment Jun 24, 2021
Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 9d5bf6b, tested on Linux Mint 20.1 (Qt 5.12.8) with the qt5ct package installed.

@hebasto hebasto added this to the 22.0 milestone Jun 29, 2021
Copy link
Contributor

@kristapsk kristapsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 9d5bf6b. Tested on Gentoo Linux with Xfce4 and Qt 5.15.2, does not break anything on my computer.

@hebasto hebasto merged commit 34f554d into bitcoin-core:master Jul 1, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jul 1, 2021
9d5bf6b GUI: Always call parent changeEvent handler (Luke Dashjr)
c901d4d GUI: Enable palette change adaptation on all platforms (Luke Dashjr)

Pull request description:

  The changes to support macOS "Dark Mode" are valid for any platform, and should work so long as Qt implements the PaletteChange event. (Worst case, we're no worse off with trying.)

  Additionally, we shouldn't block the parent classes from implementing event handlers. Who knows what side effects that could have.

ACKs for top commit:
  hebasto:
    ACK 9d5bf6b, tested on Linux Mint 20.1 (Qt 5.12.8) with the [`qt5ct`](https://packages.ubuntu.com/focal/qt5ct) package installed.
  kristapsk:
    ACK 9d5bf6b. Tested on Gentoo Linux with Xfce4 and Qt 5.15.2, does not break anything on my computer.

Tree-SHA512: dce2fff0ff129eda208132390a37424ff9607539287dbdbfdfd659ed9c4ea0472541e987489a04fd935e391dc006a35bfc9cfa9bcff33602b7dbd29b81c51626
@hebasto hebasto mentioned this pull request Jul 4, 2021
gwillen pushed a commit to ElementsProject/elements that referenced this pull request Jun 1, 2022
@bitcoin-core bitcoin-core locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
UI All about "look and feel"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants