X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fqtuistyle.h;fp=src%2Fqtui%2Fqtuistyle.h;h=733e73e580bcbd33eac8471a2ff63727b18ab4e1;hp=9d1d5fa4c122f69777e1dcfa56182c548fd1d1b7;hb=cbe2482dca16e13aa3a170213f299179d20526af;hpb=12d401fe2949ca2c823ea38181361650eaaeae66 diff --git a/src/qtui/qtuistyle.h b/src/qtui/qtuistyle.h index 9d1d5fa4..733e73e5 100644 --- a/src/qtui/qtuistyle.h +++ b/src/qtui/qtuistyle.h @@ -101,6 +101,17 @@ private: * @return Snippet of Quassel-theme-compatible Qss stylesheet */ QString senderQss(int i, const QString &messageType, bool includeNick = false) const; + + /** + * Generate a snippet of Qss stylesheet for a given IRC nickname sender-hash index + * + * This depends on the color palette generated by QtUiStyle::senderPaletteQss() + * + * @param[in] i Sender hash index from 0 - 15 + * @return Snippet of Quassel-theme-compatible Qss stylesheet + */ + QString nickQss(int i) const; + QString chatListItemQss(const QString &state, const QString &key, UiSettings &settings) const; };