yvt / openspades

Compatible client of Ace of Spades 0.75
http://openspades.yvt.jp/
GNU General Public License v3.0
1.14k stars 218 forks source link

Poor contrast in the chat history UI #1013

Open yvt opened 2 years ago

yvt commented 2 years ago

The texts are shown in the sender's team color on a dark background, so they can be hard or impossible to read in some cases.

notgif commented 2 years ago

I might be able to have a go at this if I can get myself back up to speed with freetype. I presume the relevant files are going to include some subset of:

- ChatLogWindow.as
- UIFramework.as

- ClientUI*
- FTfont
- Other 'Font' titled sources?

Also the text on macOS [retina] is a bit blurry — I remember doing something about retina screens and hinting when I last used freetype but im a bit rusty. If I can think of what it was I'll give it a go and see what happens. I might do a build on an old laptop so I actually have a baseline though

yvt commented 2 years ago

Yep, ChatLogWindow is the component for rendering the chat history UI. It internally uses TextViewer to display chat texts.

One possibly way to address this issue is to update TextViewer to draw white glow around texts like ChatWindow does:

https://github.com/yvt/openspades/blob/c7579891af9e518205dbdd46e4a3f99ec66cbb0e/Sources/Client/ChatWindow.cpp#L298-L301

Also the text on macOS [retina] is a bit blurry

That's due to the lack of proper support for DPI scaling. There's an incomplete implementation of DPI scaling in the now-abandoned 0.2.x branch (#838, ff3af0f96e27678a0d8fbd0badb6d12f542657d9), which has never been merged to master.