ChatLine#info { foreground: #916409; }
ChatLine#error { foreground: #916409; }
ChatLine#daychange { foreground: #916409; }
+ChatLine#topic { foreground: #960096; }
// BufferView Colors
ChatListItem[state="inactive"] { foreground: #a0a0a4; }
<< msgTypeQss("info", "ServerMsg", s)
<< msgTypeQss("error", "ErrorMsg", s)
<< msgTypeQss("daychange", "ServerMsg", s)
+ << msgTypeQss("topic", "CommandMsg", s)
<< "\n";
}
fmtType |= UiStyle::ErrorMsg;
else if(msgType == "daychange")
fmtType |= UiStyle::DayChangeMsg;
+ else if(msgType == "topic")
+ fmtType |= UiStyle::TopicMsg;
else {
qWarning() << Q_FUNC_INFO << tr("Invalid message type in %1").arg(decl);
}
return ErrorMsg;
case Message::DayChange:
return DayChangeMsg;
+ case Message::Topic:
+ return TopicMsg;
}
//Q_ASSERT(false); // we need to handle all message types
qWarning() << Q_FUNC_INFO << "Unknown message type:" << msgType;
//: Day Change Message
t = tr("{Day changed to %1}").arg(timestamp().toString());
break;
+ case Message::Topic:
+ //: Topic Message
+ t = tr("%1").arg(txt); break;
default:
t = tr("[%1]").arg(txt);
}
return tr("*"); break;
case Message::DayChange:
return tr("-"); break;
+ case Message::Topic:
+ return tr("*"); break;
default:
return tr("%1").arg(plainSender());
}
InfoMsg = 0x0000000c,
ErrorMsg = 0x0000000d,
DayChangeMsg = 0x0000000e,
+ TopicMsg = 0x0000000f,
// Standard Formats
Bold = 0x00000100,