X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=gui%2Fstyle.cpp;fp=gui%2Fstyle.cpp;h=9b845d3f5ae2d3e78480a16cd7b203bb55d138d4;hp=62105529ec16e3e8a77de6425f1f7b000ffa794e;hb=2c9184c37fc54adb7670ea261a8e34c99a82a285;hpb=0ac86f1eb59d72558aa9286c9e438c2bc0941298 diff --git a/gui/style.cpp b/gui/style.cpp index 62105529..9b845d3f 100644 --- a/gui/style.cpp +++ b/gui/style.cpp @@ -40,6 +40,7 @@ void Style::init() { colors["15"] = QColor("silver"); QTextCharFormat def; + def.setForeground(QBrush("black")); def.setFont(QFont("Verdana",9)); formats["default"] = def; @@ -49,7 +50,7 @@ void Style::init() { formats["%B"] = bold; // %O - 0x0f - plain - formats["%O"] = QTextCharFormat(); + formats["%O"] = def; // %R - 0x12 - reverse // -- - 0x16 - reverse @@ -220,6 +221,7 @@ Style::FormattedString Style::internalToFormatted(QString s) { } } else if(s[i] == 'O') { foreach(QString key, toggles.keys()) { + if(key == "default") continue; sf.formats[toggles[key]].length = j - sf.formats[toggles[key]].start; toggles.remove(key); }