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

uilist now draws selected row without color #76346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

db48x
Copy link
Contributor

@db48x db48x commented Sep 11, 2024

Summary

Interface "improve contrast in uilist menus by not allowing colored text in highlighted menu items"

Purpose of change

Fixes #75974

Describe the solution

Just remove color tags from the string (caching the results so it only has to be done once per menu item) and then choose between colored or uncolored text as appropriate.

Describe alternatives you've considered

Just not.

Testing

Start at the main menu and load a game. The menu to choose a character uses color in the menu item text, so you can see right away how it works. Most other menus don’t use color like this.

@github-actions github-actions bot added Info / User Interface Game - player communication, menus, etc. [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Sep 11, 2024
@db48x
Copy link
Contributor Author

db48x commented Sep 11, 2024

Build errors fixed in #76349

@db48x db48x force-pushed the no-color-in-active-menu-item branch from 7a0ba64 to d39d60e Compare September 11, 2024 21:57
This eliminates problems with contrast between the foreground colors
in the text and the background color used to indicate which row is
selected.

Fixes CleverRaven#75974
@db48x db48x force-pushed the no-color-in-active-menu-item branch from d39d60e to 8538108 Compare September 19, 2024 08:42
@db48x
Copy link
Contributor Author

db48x commented Sep 19, 2024

I fixed the merge conflict; now let’s wait and see if the spurious test failure went away as well.

@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Contrast of the time played in the save loading menu is very poor
1 participant