Skip to content

Avoid changing background colors of text and rows for group parameter…#2683

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
ntjess:param-fixes
Apr 14, 2023
Merged

Avoid changing background colors of text and rows for group parameter…#2683
j9ac9k merged 1 commit intopyqtgraph:masterfrom
ntjess:param-fixes

Conversation

@ntjess
Copy link
Copy Markdown
Contributor

@ntjess ntjess commented Apr 11, 2023

Most themes (including defaults on windows and gnome) use alternating colors for each table row. Current styling doesn't play nice with this assumption

This PR simply removes row and font coloring to avoid those difficulties:
image

Note that in the "before" samples (before this PR), the colors don't match on alternate rows, styling doesn't stand out very well, and (importantly) on some popular styling choices (there are more on GH), the text isn't properly changed and appears as very low contrast against the background.

I feel this is sufficient reason to restrain from changing background colors. I tested on a few more themes without screenshots, but I don't think there are any cases where the PR causes a worse appearance. Notably, qt-material isn't happy either way, but the problem doesn't get exacerbated with these changes.

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Apr 13, 2023

image

This is what things look like on macOS with dark mode. Still getting the overlapping text but that's been an issue for ages. Otherwise it looks good

@j9ac9k j9ac9k merged commit 99238cd into pyqtgraph:master Apr 14, 2023
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