diff --git a/retroshare-gui/src/gui/icons.qrc b/retroshare-gui/src/gui/icons.qrc
index 8967f1670..0a7f8342a 100644
--- a/retroshare-gui/src/gui/icons.qrc
+++ b/retroshare-gui/src/gui/icons.qrc
@@ -3,6 +3,9 @@
Retroshare uses Bittorrent's DHT as a proxy for connexions. It does not \"store\" your IP in the DHT. Instead the DHT is used by your friends to get in \ - contact to you when processing requests. The status bullet will turn green as soon as Retroshare is able to find one of your friends using DHT look-ups.
")) ; + statusDHT->setToolTip(tr("Retroshare uses Bittorrent's DHT as a proxy for connexions. It does not \"store\" your IP in the DHT. \ + Instead the DHT is used by your friends to reach you while processing standard DHT requests. \ + The status bullet will turn green as soon as Retroshare gets a DHT response from one of your friends.
")) ; hbox->addWidget(statusDHT); dhtstatusLabel = new QLabel( this ); @@ -127,7 +128,7 @@ void DHTStatus::getDHTStatus() { // RED - some issue. dhtstatusLabel->setPixmap(QPixmap(":/icons/bullet_red_128.png").scaledToHeight(S,Qt::SmoothTransformation)); - dhtstatusLabel->setToolTip( text + tr("DHT Error")); + dhtstatusLabel->setToolTip( text + tr("No peer found in DHT")); spaceLabel->setVisible(false); dhtnetworkLabel->setVisible(false); diff --git a/retroshare-gui/src/gui/statusbar/peerstatus.cpp b/retroshare-gui/src/gui/statusbar/peerstatus.cpp index e496ae13e..084620a95 100644 --- a/retroshare-gui/src/gui/statusbar/peerstatus.cpp +++ b/retroshare-gui/src/gui/statusbar/peerstatus.cpp @@ -31,13 +31,13 @@ PeerStatus::PeerStatus(QWidget *parent) hbox->setMargin(0); hbox->setSpacing(6); + iconLabel = new QLabel( this ); - iconLabel->setPixmap(QPixmap(":/images/user/identitygray16.png")); - // iconLabel doesn't change over time, so we didn't need a minimum size + int S = QFontMetricsF(iconLabel->font()).height(); + iconLabel->setPixmap(QPixmap(":/icons/avatar_grey_128.png").scaledToHeight(S,Qt::SmoothTransformation)); hbox->addWidget(iconLabel); statusPeers = new QLabel( tr("Friends: 0/0"), this ); -// statusPeers->setMinimumSize( statusPeers->frameSize().width() + 0, 0 ); hbox->addWidget(statusPeers); _compactMode = false; @@ -48,22 +48,19 @@ PeerStatus::PeerStatus(QWidget *parent) void PeerStatus::getPeerStatus(unsigned int nFriendCount, unsigned int nOnlineCount) { - /* set users/friends/network */ + /* set users/friends/network */ - if (statusPeers){ - statusPeers->setToolTip(tr("Online Friends/Total Friends") ); - QString text; - if (_compactMode) text = QString("%1/%2").arg(nOnlineCount).arg(nFriendCount); - else text = QString("%1: %2/%3 ").arg(tr("Friends")).arg(nOnlineCount).arg(nFriendCount); - statusPeers -> setText(text); - } + if (statusPeers){ + statusPeers->setToolTip(tr("Online Friends/Total Friends") ); + QString text; + if (_compactMode) text = QString("%1/%2").arg(nOnlineCount).arg(nFriendCount); + else text = QString("%1: %2/%3 ").arg(tr("Friends")).arg(nOnlineCount).arg(nFriendCount); + statusPeers -> setText(text); + } + int S = QFontMetricsF(iconLabel->font()).height(); - if (nOnlineCount > 0) - { - iconLabel->setPixmap(QPixmap(":/images/user/identity16.png")); - } - else - { - iconLabel->setPixmap(QPixmap(":/images/user/identitygray16.png")); - } + if (nOnlineCount > 0) + iconLabel->setPixmap(QPixmap(":/icons/avatar_128.png").scaledToHeight(S,Qt::SmoothTransformation)); + else + iconLabel->setPixmap(QPixmap(":/icons/avatar_grey_128.png").scaledToHeight(S,Qt::SmoothTransformation)); }