Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5767 closed defect (duplicate)

Chat messages not very readable if the person has light colors

Reported by: sjoerd Owned by: morgs
Priority: normal Milestone: Future Release
Component: chat-activity Version:
Keywords: relnote Cc: gdesmot, Eben
Blocked By: Blocking:
Deployments affected: Action Needed:
Verified: no


Messages from a user with yellow as one of its two colors aren't very readable in the chat activity, because then the messages typed by this user have a yellow background with white letters.

Change History (7)

comment:1 Changed 9 years ago by jg

  • Keywords relnote added
  • Milestone changed from Never Assigned to Future Release

comment:2 Changed 9 years ago by cafl

I'd like to add that "not very readable" should be "totally unreadable". Is there a text color widget that could be added to switch the color of text on the page?

comment:3 Changed 9 years ago by morgs

It's basically the yellow background that has readability issues with the white text. I'll try increase the font size, since bold white text is readable on the yellow.

comment:4 Changed 9 years ago by morgs

  • Cc Eben added

Eben, this problem occurs in Chat with white text on a yellow background. I don't want to change the font size or style for this one issue, but it is difficult to read.

comment:5 Changed 9 years ago by matthias

One solution would be to choose a text color depending on the background.
The following lines solves this for me:

  color_fill_rgba = Color(color_fill).get_rgba()
  color_fill_gray = (color_fill_rgba[0] + color_fill_rgba[1] + color_fill_rgba[2])/3
  if color_fill_gray < 0.5:
      text_color = COLOR_WHITE.get_int()
      text_color = COLOR_BLACK.get_int()

comment:6 Changed 9 years ago by matthias

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #4240

comment:7 Changed 9 years ago by morgs

Thanks, I used this patch until we get an answer in #4240.

Note: See TracTickets for help on using tickets.