Cockatrice: Suggestion: Ability to change color options in chat

Created on 14 Apr 2016  路  4Comments  路  Source: Cockatrice/Cockatrice

OS:
Windows 10

Cockatrice version:
Version 323fc06 (2016-02-02)



It might be beneficial to have a wider selection of colors to work with, both for the in-game chat as well as the join messages that are presented when using custom Servatrice servers. Currently, the roomlist\x\joinmessage function can only output a dark green text that is visually difficult to read using some of the themes that are found on the wiki.

App - Cockatrice Suggestion UI / UX

Most helpful comment

Imho we should remove the hardcoded colors and add classes to make it possible to style them using css from a theme.

All 4 comments

Imho we should remove the hardcoded colors and add classes to make it possible to style them using css from a theme.

@ctrlaltca this is near and dear to my heart as a theme designer, but looking at the chatview code, I'm not sure of the right way to add classes to these elements? https://github.com/Cockatrice/Cockatrice/blob/master/cockatrice/src/chatview.cpp#L173

Is it as simple as defaultFormat.setObjectName('ServerChatMessage') and then I'm set to grab it in a theme? if so, this is great! I can make that happen.

It should be pretty easy to just try; change the switch there to apply a style instead of hardcoding the aspects, then just grab that class in css and make it stand out

Dupe #3948

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shackra picture shackra  路  4Comments

skwerlman picture skwerlman  路  6Comments

FinksJuice picture FinksJuice  路  4Comments

tooomm picture tooomm  路  6Comments

Thunderbeliever picture Thunderbeliever  路  6Comments