alamminsalo / orion

Cross platform Twitch.tv client
GNU General Public License v3.0
313 stars 60 forks source link

Add ability to style chat #241

Open afontenot opened 6 years ago

afontenot commented 6 years ago

I tried poking around the code a little for this, and it doesn't look like there's presently any easy way to do this. (I'm okay if it's a bit hackish.) It looks like the chat is just IRC with some extensions, which supports styling pretty well, and if I'm not mistaken it's getting rendered as HTML in the end, which means it could be styled with CSS as well.

Basically I might want to, say, highlight certain chatters who are regular viewers, since on many streams the chat goes by so fast that you can't read everything. This is easy to do on the web (I've written a little user css for it) and it would be great to have in Orion too. I can try to work on this myself, but I'm not as familiar with C++ as many other languages.

Thanks for your hard work on Orion. It's really great to see a traditional compiled desktop application working with something as modern as Twitch. (As opposed to e.g. Electron.) I'm a fan!

alamminsalo commented 6 years ago

The chat is currently not rendered as HTML but as dynamic images and labels via qml. Qt's subset of HTML could possibly integrate this type of behaviour: http://doc.qt.io/qt-5/richtext-html-subset.html

Current impl https://github.com/alamminsalo/orion/blob/master/src/qml/irc/ChatMessage.qml