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

IntCtrl: Change default colour to wx.NullColour #2215

Merged
merged 1 commit into from
Aug 6, 2022

Conversation

alexdewar
Copy link
Contributor

@alexdewar alexdewar commented Jul 25, 2022

Fixes #2199.

The problem is that the default colour is currently wx.BLACK which will basically be invisible if the user has a dark theme. Use wx.NullColour instead so that it can just use the default text colour for the user's theme.

Note that this does not fix the second part of issue #2199 (the colours still don't change if the control is disabled) but I feel this should be a separate issue now.

Fixes wxWidgets#2199.

The problem is that the default colour is currently wx.BLACK which will basically be invisible if the user has a dark theme. Use ``wx.NullColour`` instead so that it can just use the default text colour for the user's theme.

Note that this does not fix the second part of issue wxWidgets#2199 (the colours still don't change if the control is disabled) but I feel this should be a separate issue now.
@alexdewar
Copy link
Contributor Author

Ping ping? Any chance of a review for this? 😄

It's a fairly trivial change but I think it's a good one!

Looking at the CI failures, it seems to have nothing to do with the PR and seems to be some generic Windows problem. It seems I don't have the authority to trigger a rerun of tests, but this might fix the issue....

@RobinD42 RobinD42 merged commit 51f02ec into wxWidgets:master Aug 6, 2022
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.

IntCtrl text colour doesn't respect system theme or enabled status
2 participants