Skip to content

Use contrasting text color wherever custom background colors are used#369

Open
danielskeenan wants to merge 5 commits intodocsteer:masterfrom
danielskeenan:368-grid-contrasting-color
Open

Use contrasting text color wherever custom background colors are used#369
danielskeenan wants to merge 5 commits intodocsteer:masterfrom
danielskeenan:368-grid-contrasting-color

Conversation

@danielskeenan
Copy link
Contributor

Fixes #368.

Change text color in GridWidget, SACNSourceTableModel, and ScopeModel whenever the background color is set. I think these are the only places where a table cell gets a custom background color.

There's a function in a new file color_helpers.h called findBestContrastingColor() that does the math, so if there are other places now or later it's simple enough to update. Not sure if this is the best place for that function, but I didn't want to tie it to the CID color calcs since it's useful elsewhere (like the scope window).

Some screenshots:

Screenshot_20260228_155947 Screenshot_20260228_160114 Screenshot_20260228_155722

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.

Universe View can display levels with bad contrast

1 participant