Skip to content

Conversation

@hebasto
Copy link
Member

@hebasto hebasto commented Apr 7, 2021

Only toolbar icons support Dark/Light runtime switching for now.

hebasto added 2 commits April 7, 2021 09:44
This change is a prerequisite to support changeable appearance on macOS.
This change fixes the GUI when changing appearance on macOS.
@hebasto hebasto added the macOS label Apr 7, 2021
Copy link
Contributor

@jarolrod jarolrod left a comment

Choose a reason for hiding this comment

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

Concept ACK,

This seems to be a step in the right direction to supporting theme switching on macOS. The icons this PR touches do get recolorized.

Below are some screenshots with all possible build options on macOS 11.2.3 and macOS 10.15.7, comparing master and pr.

It is weird that dark mode does not work at all on a native depends build, but works on a cross-compile depends build.

Master

Compiled Natively

macOS 11.2.3

Start: Light Mode Switch to Dark Mode
Screen Shot 2021-04-07 at 12 27 07 PM Screen Shot 2021-04-07 at 12 27 27 PM

macOS 10.15.7

Start: Light Mode Switch to Dark Mode
before after

Depends Build Natively

macOS 11.2.3

Start: Light Mode Switch to Dark Mode
Screen Shot 2021-04-07 at 1 33 10 PM Screen Shot 2021-04-07 at 1 33 19 PM

macOS 10.15.7

Start: Light Mode Switch to Dark Mode
before after

Depends Cross Compile (from Linux)

macOS 11.2.3

Start: Light Mode Switch to Dark Mode
before after

macOS 10.15.7

Start: Light Mode Switch to Dark Mode
Screen Shot 2021-04-07 at 9 16 29 PM Screen Shot 2021-04-07 at 9 16 47 PM

PR 0993439

Compiled Natively

macOS 11.2.3

Start: Light Mode Switch to Dark Mode
Screen Shot 2021-04-07 at 12 06 55 PM Screen Shot 2021-04-07 at 12 10 11 PM

macOS 10.15.7

Start: Light Mode Switch to Dark Mode
Screen Shot 2021-04-07 at 5 57 09 PM Screen Shot 2021-04-07 at 5 57 25 PM

Depends Build Natively

macOS 11.2.3

Start: Light Mode Switch to Dark Mode
before after

macOS 10.15.7

Start: Light Mode Switch to Dark Mode
before after

Depends Cross Compile (from Linux)

macOS 11.2.3

Start: Light Mode Switch to Dark Mode
Screen Shot 2021-04-07 at 9 53 39 PM Screen Shot 2021-04-07 at 9 54 00 PM

macOS 10.15.7

Start: Light Mode Switch to Dark Mode
before Screen Shot 2021-04-07 at 6 59 56 PM

@hebasto
Copy link
Member Author

hebasto commented Apr 9, 2021

Closed in favor of the complete solution #275.

@hebasto hebasto closed this Apr 9, 2021
@hebasto hebasto deleted the 210407-dark-poc branch April 9, 2021 06:58
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants