# HG changeset patch # User sheepluva # Date 1319266262 -7200 # Node ID c739b503ae3165310aa69d9889aa0848be86b791 # Parent 0992fc5a4ad9a0e6878b993d6a1ef9fce9aa5143 ugh wth... cleaned FL/IL change notifications up diff -r 0992fc5a4ad9 -r c739b503ae31 QTfrontend/res/css/chat.css --- a/QTfrontend/res/css/chat.css Sat Oct 22 06:55:14 2011 +0200 +++ b/QTfrontend/res/css/chat.css Sat Oct 22 08:51:02 2011 +0200 @@ -19,7 +19,7 @@ .msg_FriendChat .nick { color: #20ff20; } .msg_UserJoin { color: #c0c0c0; } .msg_UserJoin .nick { color: #d0d0d0; } -.msg_FriendJoin { color: #c0f0c0; } +.msg_FriendJoin { font-weight: bold; color: #c0f0c0; } .msg_FriendJoin .nick { color: #d8f0d8; } .msg_UserAction { color: #ff80ff; } .msg_UserAction .nick { color: #ffa0ff;} diff -r 0992fc5a4ad9 -r c739b503ae31 QTfrontend/ui/widget/chatwidget.cpp --- a/QTfrontend/ui/widget/chatwidget.cpp Sat Oct 22 06:55:14 2011 +0200 +++ b/QTfrontend/ui/widget/chatwidget.cpp Sat Oct 22 08:51:02 2011 +0200 @@ -173,7 +173,7 @@ void HWChatWidget::displayError(const QString & message) { - addLine("msg_Error", message); + addLine("msg_Error", " !!! " + message); // scroll to the end chatText->moveCursor(QTextCursor::End); } @@ -181,13 +181,13 @@ void HWChatWidget::displayNotice(const QString & message) { - addLine("msg_Notice", message); + addLine("msg_Notice", " *** " + message); } void HWChatWidget::displayWarning(const QString & message) { - addLine("msg_Warning", message); + addLine("msg_Warning", " *!* " + message); } @@ -559,7 +559,7 @@ { ignoreList.removeAll(curritem->text().toLower()); chatEditLine->addNickname(curritem->text()); - onChatString(HWChatWidget::tr("%1 *** %2 has been removed from your ignore list").arg('\x03').arg(curritem->text())); + displayNotice(tr("%1 has been removed from your ignore list").arg(curritem->text())); } else // not on list - add { @@ -573,7 +573,7 @@ ignoreList << curritem->text().toLower(); chatEditLine->removeNickname(curritem->text()); - onChatString(HWChatWidget::tr("%1 *** %2 has been added to your ignore list").arg('\x03').arg(curritem->text())); + displayNotice(tr("%1 has been added to your ignore list").arg(curritem->text())); } updateNickItem(curritem); // update icon/sort order/etc chatNicks->sortItems(); @@ -589,7 +589,7 @@ if(friendsList.contains(curritem->text(), Qt::CaseInsensitive)) // already on list - remove him { friendsList.removeAll(curritem->text().toLower()); - onChatString(HWChatWidget::tr("%1 *** %2 has been removed from your friends list").arg('\x03').arg(curritem->text())); + displayNotice(tr("%1 has been removed from your friends list").arg(curritem->text())); } else // not on list - add { @@ -602,7 +602,7 @@ chatNicks->scrollToTop(); friendsList << curritem->text().toLower(); - onChatString(HWChatWidget::tr("%1 *** %2 has been added to your friends list").arg('\x03').arg(curritem->text())); + displayNotice(tr("%1 has been added to your friends list").arg(curritem->text())); } updateNickItem(curritem); // update icon/sort order/etc chatNicks->sortItems();