Skip to content

Conversation

@Micheus
Copy link
Collaborator

@Micheus Micheus commented Oct 2, 2025

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).

@Micheus
Copy link
Collaborator Author

Micheus commented Oct 2, 2025

Here is a sample image:
W3dCustomStatusbar

@dgud dgud requested a review from Copilot December 2, 2025 14:41
@dgud
Copy link
Owner

dgud commented Dec 2, 2025

I have let co-pilot review this, fix stuff that seems valid and write when your are done, or nothing needs fixing.
It is wrong often.

Copy link

Copilot AI left a 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/2 callback to manually render status bar text and grip icon
  • Added draw_grip/3 helper 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).
@Micheus Micheus force-pushed the mv/v2.4-fix-temes-colours-issue branch from 014c396 to ab83f4d Compare December 16, 2025 23:52
@Micheus Micheus force-pushed the mv/v2.4-fix-temes-colours-issue branch from ab83f4d to 79e873a Compare December 17, 2025 00:08
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.

2 participants