longturn / freeciv21

Develop your civilization from humble roots to a global empire
GNU General Public License v3.0
214 stars 39 forks source link

increase visual difference between seen (i.e. clicked) messages and unseen ones #2310

Open hugomflavio opened 6 days ago

hugomflavio commented 6 days ago

Is your feature request related to a problem? Please describe. Currently, clicking a message turns the text to italics. This is already nice, but it is very hard to quickly notice while scrolling through the messages. Seeing as anything happening in the game (e.g. a sentry being triggered, setting a governor that won't work) will roll the messages all the way back to the end, it would be great to have a more prominent indicator of which messages have been seen.

Currently, this is what we have (top is unclicked, bottom is clicked): image

Describe the solution you'd like Some options: Change the message background colour on click. Change the message text colour on click. Add a check-mark before (or after) the message on click.

Describe alternatives you've considered Don't scroll the messages down when something happens. But that's not ideal.

Additional context When one has 125 cities, this can be a real pain in the butt :grin:

lmoureaux commented 1 day ago

Using setForeground() on the item allows controlling its color, but finding a good color doesn't look easy (has to depend on the style, but the palette doesn't have the needed colors: colors for disabled states are missing). The icon could also be set to grayscale, but this doesn't look trivial.