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 outline/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)
follow-up: 2 comment:1 by , 8 years ago
comment:2 by , 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 , 5 years ago
Component: | UI & Simulation → UI – In-game |
---|
Should the solution be binary - white or black?
If so, the solution could approximately be:
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:
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