X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtopia%2Fqtopiauistyle.cpp;h=ba433dd808035179ed513b9439bb88b3cdcec686;hp=2716b2298e66118938823a91df8912b43f0f86dd;hb=cd0868fff76dd067470881134fd736e1a1d97e71;hpb=48979ba2c343ab50ae93a8bb1c355ce79115bd4f diff --git a/src/qtopia/qtopiauistyle.cpp b/src/qtopia/qtopiauistyle.cpp index 2716b229..ba433dd8 100644 --- a/src/qtopia/qtopiauistyle.cpp +++ b/src/qtopia/qtopiauistyle.cpp @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005-07 by the Quassel IRC Team * + * Copyright (C) 2005-08 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -19,12 +19,14 @@ ***************************************************************************/ #include "qtopiauistyle.h" +#include "settings.h" -QtopiaUiStyle::QtopiaUiStyle() : UiStyle() { +QtopiaUiStyle::QtopiaUiStyle() : UiStyle("QtopiaUiStyle") { QTextCharFormat def; - def.setFont(QFont("Verdana",6)); - setFormat(None, def); + def.setForeground(QBrush("#000000")); + def.setFont(QFont("Verdana",5)); + setFormat(None, def, Settings::Default); // We need to just set our internal formats; everything else is done by the base class... @@ -32,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("#cd5c5c")); - setFormat(PartMsg, part); + part.setForeground(QBrush("#ff0000")); + setFormat(PartMsg, part, Settings::Default); QTextCharFormat quit; - quit.setForeground(QBrush("#cd5c5c")); - setFormat(QuitMsg, quit); + quit.setForeground(QBrush("#ff0000")); + setFormat(QuitMsg, quit, Settings::Default); QTextCharFormat kick; - kick.setForeground(QBrush("#cd5c5c")); - setFormat(KickMsg, kick); + kick.setForeground(QBrush("#ff0000")); + 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); }