feature request: 24bit color
jason-green-io opened this issue ยท 6 comments
Since I think 1.16, chat messages can be 24bit colours using #AAAAAA
or whatever. Not sure if Fabric has that ability when inserting in chat, but the vanilla client does via /tellraw
json. You know Twitch provides that info since I see you find the closest basic Minecraft colour match. It would be nice to get the correct colours from Twitch, I sometimes see certain shades of red get converted to grey.
That looks doable! I've been looking at the functions I use to colour messages and at least on the surface that looks like both an improvement and a way to reduce my horrible color translation code. ๐
I'll be chaning that and pushing it in a few weeks, I'm in the process of moving
I think the only issue you'll run into is supporting older versions of client that do not support 24 bit color in chat. You might have to keep your mess around to fall back with < 1.16 .. unless Fabric API takes care of this for you?
Yeah that won't be a problem because I only support the latest version. ๐
I'd have to maintain several codebases if I wanted to support more than one version, and that's too much work!
Current status of this issue: I tried to change this. Turns out it was harder than I first thought because of the way Twitch gives me the user colours (not all at once, sometimes after I need it so I would need a placeholder, which would kind of break the spirit of 24-bit name colours).
So this will probably be added when I upgrade the way I talk to Twitch (I'm using a general-purpose library that's updated very sparingly and doesn't really support Twitch that well, and will be switching to a Twitch-only library that will hopefully allow me to handle stuff like colours better).