Opened 8 years ago

Last modified 5 years ago

#3819 new enhancement

poor contrast in messages/ UI Text

Reported by: Lionkanzen Owned by:
Priority: Nice to Have Milestone: Backlog
Component: UI – In-game Keywords:
Cc: Patch:

Description

https://wildfiregames.com/forum/index.php?/topic/20553-little-visual-issue/

Dark color have a bad contrast with existent black outlinehttp://i.imgur.com/jlTSpfa.png/Stroke

so is aesthetic unacceptable and hard to read in some cases. especially the messages.

the way to fix is have two kind strokes lines one black(the actual)and one white.

if color is dark, we should use white if is lightues black.

Change History (3)

comment:1 by shookees, 8 years ago

Should the solution be binary - white or black?

If so, the solution could approximately be:

READ player's colour values AS r, g, b
IF max([r, g, b]) > 127 THEN
    border = black
ELSE
    border = white
ENDIF

In short, it would find the most intense colour and see in which side is it (lower or upper), if <= 127 then it means that the most intense colour is quite dark, thus the border should be white and vice versa.

I've also thought about non-binary solution for this, such as assigning invert grey-scale colour:

READ player's colour values AS r, g, b
maxColour = max([r, g, b])
maxColourInverse = 255 - maxColour
border = RGB(maxColourInverse, maxColourInverse, maxColourInverse)

But the above solution might need additional handling for player colours that have max right at the middle, as it would make almost seamless border.

P.S. this is my first comment and I am sorry for my weak pseudo-code abilities, as well as most likely not using the coding convention for this project

in reply to:  1 comment:2 by Lionkanzen, 8 years ago

Replying to shookees:

Should the solution be binary - white or black?

Ok keeping in mind these color were not the original and were selected by the good looking. I'm not sure how many alphas this was changed by the time, but I don't remember the dark gray and a dark red for example in early alphas. So the answer is 50% yes.

comment:3 by Itms, 5 years ago

Component: UI & SimulationUI – In-game
Note: See TracTickets for help on using tickets.