From 92ffcec3ed1134318ead39155dd27ff5e0df8649 Mon Sep 17 00:00:00 2001 From: defnax Date: Sun, 25 Jan 2009 19:02:52 +0000 Subject: [PATCH] * Added darkBlue TextColor for Connected Friend * Set TextColor Bold git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@949 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/PeersDialog.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/retroshare-gui/src/gui/PeersDialog.cpp b/retroshare-gui/src/gui/PeersDialog.cpp index 0b678d198..ccd3bee00 100644 --- a/retroshare-gui/src/gui/PeersDialog.cpp +++ b/retroshare-gui/src/gui/PeersDialog.cpp @@ -336,7 +336,11 @@ void PeersDialog::insertPeers() // CsoLer: I uncommented the color because it's really confortable // to be able to see at some distance that people are connected. // The blue/gray icons need a close look indeed. - item -> setBackground(i,QBrush(Qt::green)); + //item -> setBackground(i,QBrush(Qt::green)) + item -> setTextColor(i,(Qt::darkBlue)); + QFont font ; + font.setBold(true); + item -> setFont(i,font); item -> setIcon(0,(QIcon(IMAGE_ONLINE))); } } @@ -992,10 +996,10 @@ void PeersDialog::displayInfoChatMenu(const QPoint& pos) void PeersDialog::loadEmoticonsgroupchat() { QString sm_codes; - #if defined(Q_OS_WIN32) - QFile sm_file(QApplication::applicationDirPath() + "/emoticons/emotes.acs"); - #else - QFile sm_file(QString(":/emoticons/emotes.acs")); + #if defined(Q_OS_WIN32) + QFile sm_file(QApplication::applicationDirPath() + "/emoticons/emotes.acs"); + #else + QFile sm_file(QString(":/emoticons/emotes.acs")); #endif if(!sm_file.open(QIODevice::ReadOnly)) { @@ -1043,10 +1047,10 @@ void PeersDialog::loadEmoticonsgroupchat() } i++; if(!smcode.isEmpty() && !smfile.isEmpty()) - #if defined(Q_OS_WIN32) + #if defined(Q_OS_WIN32) smileys.insert(smcode, smfile); - #else - smileys.insert(smcode, ":/"+smfile); + #else + smileys.insert(smcode, ":/"+smfile); #endif } }