mumble-voip / mumble

Mumble is an open-source, low-latency, high quality voice chat software.
https://www.mumble.info
Other
6.45k stars 1.12k forks source link

predefined highlight colors for chat in themes #2060

Open dafoxia opened 8 years ago

dafoxia commented 8 years ago

Feature Request:

It would be fine if themes had predifined colors/styles for chat highlighting. So mumble moderator or other scripts can use this styles and avoid that message could not be read on client side because theme settings. I think 2 or 3 colors are enough.

hacst commented 8 years ago

Sounds like a good idea. @xPoke / @mkrautz I assume we can just add some QSS classes and those automatically become available in chat?

What presets would be helpful? Something like

Or something like that? What are the use-cases we want to cover?

xpoke commented 8 years ago

We can just allow the colors from ApplicationPalette in the chat, those colors are designed for this purpose in QT applications, so they should work just as well in the chat.

hacst commented 8 years ago

Hm. What do you mean by "allow"?

xpoke commented 8 years ago

I would have to experiment when I get home, but generally I mean using the ApplicationPalette colors we defined such as qproperty-text or qproperty-highlight, etc, in the chat window's HTML properties. It should be something along the lines of:

<a href="../html-link.htm" style="color:QPalette.Active">

Or any other syntax which works (gotta make sure not to break HTML/CSS). How to set these colors is interesting though. Maybe we can parse them before display and replace them with the appropriate #color?