colors["15"] = QColor("silver");
QTextCharFormat def;
+ def.setForeground(QBrush("black"));
def.setFont(QFont("Verdana",9));
formats["default"] = def;
formats["%B"] = bold;
// %O - 0x0f - plain
- formats["%O"] = QTextCharFormat();
+ formats["%O"] = def;
// %R - 0x12 - reverse
// -- - 0x16 - reverse
QTextCharFormat mode;
mode.setForeground(QBrush("steelblue"));
formats["%Dm"] = mode;
+ // %Da - ctcp action
+ QTextCharFormat action;
+ action.setFontItalic(true);
+ action.setForeground(QBrush("darkmagenta"));
+ formats["%Da"] = action;
// %DT - timestamp
QTextCharFormat ts;
}
} 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);
}