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 object's list text color on Linux (GH-2086) #2346

Merged

Conversation

mdziekon
Copy link
Contributor

@mdziekon mdziekon commented Oct 7, 2023

Partial solution for #2086 (do not close - this PR does not fully fix the issue, it just makes one place better)

This PR focuses on fixing the Object's list text rendering on linux-based OSes. As some people reported, for Linux users with Dark mode enabled, the Object's list renders its text in black-ish color, making it impossible to read. I'm not sure about that in general, but for me at least, switching temporarily to light mode also didn't fix the problem (comparing to other places where that trick does fix the problem, temporarily), as it was rendered all white.

The proposed fix for that is quite simple - for linux platforms, apply the base text color, which then seems to be handled by dark mode color changing as expected.

Comparison

Before

obraz
obraz

After

obraz
obraz

@discip
Copy link
Contributor

discip commented Oct 7, 2023

@mdziekon

fixes #2086

If you don't want the related issue to be closed, you would need to change the quoted line as exactly that will definitely happen due to GitHub Docs if you leave it like this. 😊

Maybe something like:

partially fixes issue #2086

@mdziekon
Copy link
Contributor Author

mdziekon commented Oct 7, 2023

@mdziekon

fixes #2086

If you don't want the related issue to be closed, you would need to change the quoted line as exactly that will definitely happen due to GitHub Docs if you leave it like this. 😊

Maybe something like:

partially fixes issue #2086

Good advice, changed to:

Partial solution for #2086

@@ -91,6 +91,13 @@ ObjectList::ObjectList(wxWindow* parent) :
wxDataViewCtrl(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_MULTIPLE)
{
wxGetApp().UpdateDVCDarkUI(this, true);

#ifdef __linux__
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SoftFever SoftFever merged commit d54e5bd into SoftFever:main Oct 8, 2023
4 checks passed
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.

3 participants