X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtopia%2Fqtopiauistyle.cpp;fp=src%2Fqtopia%2Fqtopiauistyle.cpp;h=5876eae173d4342ed9a6f1619dba11f9b932e8c2;hp=88dd9216a6b2bdcc22f4735036cce050d27564bd;hb=4bfbd8dcbcb398302aaad0b6707c561760d7a7ac;hpb=e008cd12ef319c4b5f9fe5a8cc1524829551771d diff --git a/src/qtopia/qtopiauistyle.cpp b/src/qtopia/qtopiauistyle.cpp index 88dd9216..5876eae1 100644 --- a/src/qtopia/qtopiauistyle.cpp +++ b/src/qtopia/qtopiauistyle.cpp @@ -19,13 +19,14 @@ ***************************************************************************/ #include "qtopiauistyle.h" +#include "settings.h" -QtopiaUiStyle::QtopiaUiStyle() : UiStyle() { +QtopiaUiStyle::QtopiaUiStyle() : UiStyle("QtopiaUiStyle") { QTextCharFormat def; def.setForeground(QBrush("#000000")); def.setFont(QFont("Verdana",5)); - setFormat(None, def); + setFormat(None, def, Settings::Default); // We need to just set our internal formats; everything else is done by the base class... @@ -33,81 +34,81 @@ QtopiaUiStyle::QtopiaUiStyle() : UiStyle() { QTextCharFormat plainMsg; plainMsg.setForeground(QBrush("#000000")); - setFormat(PlainMsg, plainMsg); + setFormat(PlainMsg, plainMsg, Settings::Default); QTextCharFormat notice; notice.setForeground(QBrush("#000080")); - setFormat(NoticeMsg, notice); + setFormat(NoticeMsg, notice, Settings::Default); QTextCharFormat server; server.setForeground(QBrush("#000080")); - setFormat(ServerMsg, server); + setFormat(ServerMsg, server, Settings::Default); QTextCharFormat error; error.setForeground(QBrush("#ff0000")); - setFormat(ErrorMsg, error); + setFormat(ErrorMsg, error, Settings::Default); QTextCharFormat join; join.setForeground(QBrush("#008000")); - setFormat(JoinMsg, join); + setFormat(JoinMsg, join, Settings::Default); QTextCharFormat part; part.setForeground(QBrush("#ff0000")); - setFormat(PartMsg, part); + setFormat(PartMsg, part, Settings::Default); QTextCharFormat quit; quit.setForeground(QBrush("#ff0000")); - setFormat(QuitMsg, quit); + setFormat(QuitMsg, quit, Settings::Default); QTextCharFormat kick; kick.setForeground(QBrush("#ff0000")); - setFormat(KickMsg, kick); + setFormat(KickMsg, kick, Settings::Default); QTextCharFormat nren; nren.setForeground(QBrush("#6a5acd")); - setFormat(RenameMsg, nren); + setFormat(RenameMsg, nren, Settings::Default); QTextCharFormat mode; mode.setForeground(QBrush("#4682b4")); - setFormat(ModeMsg, mode); + setFormat(ModeMsg, mode, Settings::Default); QTextCharFormat action; action.setFontItalic(true); action.setForeground(QBrush("#8b008b")); - setFormat(ActionMsg, action); + setFormat(ActionMsg, action, Settings::Default); // Internal message element formats QTextCharFormat ts; ts.setForeground(QBrush("#808080")); - setFormat(Timestamp, ts); + setFormat(Timestamp, ts, Settings::Default); QTextCharFormat sender; sender.setAnchor(true); sender.setForeground(QBrush("#000080")); - setFormat(Sender, sender); + setFormat(Sender, sender, Settings::Default); QTextCharFormat nick; nick.setAnchor(true); nick.setFontWeight(QFont::Bold); - setFormat(Nick, nick); + setFormat(Nick, nick, Settings::Default); QTextCharFormat hostmask; hostmask.setFontItalic(true); - setFormat(Hostmask, hostmask); + setFormat(Hostmask, hostmask, Settings::Default); QTextCharFormat channel; channel.setAnchor(true); channel.setFontWeight(QFont::Bold); - setFormat(ChannelName, channel); + setFormat(ChannelName, channel, Settings::Default); QTextCharFormat flags; flags.setFontWeight(QFont::Bold); - setFormat(ModeFlags, flags); + setFormat(ModeFlags, flags, Settings::Default); QTextCharFormat url; url.setFontUnderline(true); url.setAnchor(true); - setFormat(Url, url); + setFormat(Url, url, Settings::Default); }