-
Notifications
You must be signed in to change notification settings - Fork 96
Workaround to fix text colour not changing in status bar #620
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
base: master
Are you sure you want to change the base?
Conversation
|
I have let co-pilot review this, fix stuff that seems valid and write when your are done, or nothing needs fixing. |
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.
Pull request overview
This PR implements a workaround for a known wxWidgets issue where the text color in the status bar doesn't properly change according to theme settings on native controls. The solution involves custom painting the status bar using a paint event callback, which provides full control over rendering including text colors and a custom grip icon.
Key changes:
- Implemented custom painting via
custom_draw/2callback to manually render status bar text and grip icon - Added
draw_grip/3helper function to draw a Windows-style resize grip - Fixed indentation inconsistency on line 54
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
It was noticed that the text color in the status bar doesn't change according to the theme settings. Looking for info I found that it's an know issue in wxWidgets which setting the color of native controls is not always possible. Considering we use the wxFLAT style, drawing the status bar ourselves is the easiest and most effective way to work around this issue. I included a grip icon similar to the Windows version, since no system resource is available for use (as with other system icons). NOTE: Fixed a theme issue that was preventing the status bar text from using its setting in the theme color. Thanks to Nova711 (on Discord).
014c396 to
ab83f4d
Compare
ab83f4d to
79e873a
Compare

It was noticed that the text color in the status bar doesn't change according to the theme settings. Looking for info I found that it's an know issue in wxWidgets which setting the color of native controls is not always possible.
Considering we use the wxFLAT style, drawing the status bar ourselves is the easiest and most effective way to work around this issue. I included a grip icon similar to the Windows version, since no system resource is available for use (as with other system icons).
NOTE:
Fixed a theme issue that was preventing the status bar text from using its setting in the theme color. Thanks to Nova711 (on Discord).