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

Fix wxGrid colours #2378

Merged
merged 3 commits into from May 31, 2021
Merged

Fix wxGrid colours #2378

merged 3 commits into from May 31, 2021

Conversation

vadz
Copy link
Contributor

@vadz vadz commented May 22, 2021

Restore wxGrid cursor visibility broken in 3.1.5 by #2026.

vadz added 3 commits May 22, 2021 16:06
The changes of 3c28244 (Improve wxGrid appearance in dark mode under
macOS, 2020-08-07) resulted in using white highlight colour over white
background under at least MSW and probably elsewhere, making the grid
cursor invisible by default.

Fix this by using wxSYS_COLOUR_WINDOWTEXT which must contrast with
wxSYS_COLOUR_WINDOW used for the background colour.
This was also changed in 3c28244 (Improve wxGrid appearance in dark
mode under macOS, 2020-08-07) but there doesn't appear to be any good
reason to do it as wxSYS_COLOUR_3DDKSHADOW is the same as the previously
used wxSYS_COLOUR_3DSHADOW (a.k.a. wxSYS_COLOUR_BTNSHADOW) under Mac, so
this didn't change anything there -- but did make the shadows darker and
hence more pronounced and more noticeable under MSW.

Undo this change to restore the old and nicer looking appearance.
No real changes, just make it more obvious that wxSYS_COLOUR_BTNSHADOW
and wxSYS_COLOUR_3DDKSHADOW are mapped to the same colour under Mac.
@vadz vadz merged commit 82ebbe8 into wxWidgets:master May 31, 2021
@vadz vadz deleted the grid-colours branch May 31, 2021 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant