-
Notifications
You must be signed in to change notification settings - Fork 35
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/standardize STANDOUT in wxWidgets builds #122
Conversation
Yes, that makes sense that that is the problem. Thank you for finding the cause. (As the comment in dc.h https://github.com/wxWidgets/wxWidgets/blob/master/interface/wx/dc.h makes clear wxINVERT doesn't work on Mac and GTK3). I do wonder if it might be better to do (and I would have to look more at the code to figure out if this makes sense):
|
Good thought on flipping the foreground and background colors - I'll take a look at that approach. |
…ound/background colors
Possibly yes - I was thinking of the checks as minimizing calls to
|
Refactored logic based on review. While testing, I noticed there's a bug in the way selection highlighting works if there is offscreen text in the terminal. I can try and sort that out on this PR or can pull that code back out and work it independently (now that |
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.
Reviewed code, tested and I approve.
I am fine with merging as is, or splitting out the STANDOUT fix and merging that. |
Gotcha, I'm going to revert the changes to selection highlighting then - there seems to be a snarly bug there, so I'm going to need to mull a bit. |
…ties around scrolled content to address.
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.
Reviewed, tested and approve
Thanks for fixing this :) |
You're welcome, no worries :) |
One possible approach to handling inverted text in wxWidgets builds (both
STANDOUT
and text selection highlighting).This feels like it could potentially be refined, so I'm going to open it as a draft PR to allow for discussion and further experiments.
Test Environments