mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
set default avatar to contact_dark.png, removed active/inactive avatar
switching
This commit is contained in:
parent
5411db5bec
commit
76e5876f0a
|
@ -45,7 +45,7 @@ FriendWidget::FriendWidget(int FriendId, QString id)
|
|||
setLayoutDirection(Qt::LeftToRight); // parent might have set Qt::RightToLeft
|
||||
|
||||
avatar = new MaskablePixmapWidget(this, QSize(40,40), ":/img/avatar_mask.png");
|
||||
avatar->setPixmap(QPixmap(":img/contact.png"));
|
||||
avatar->setPixmap(QPixmap(":img/contact_dark.png"));
|
||||
name.setText(id);
|
||||
//statusPic.setAlignment(Qt::AlignHCenter);
|
||||
statusPic.setPixmap(QPixmap(":img/status/dot_away.png"));
|
||||
|
@ -140,8 +140,6 @@ void FriendWidget::setAsActiveChatroom()
|
|||
QPalette pal3;
|
||||
pal3.setColor(QPalette::Background, Qt::white);
|
||||
this->setPalette(pal3);
|
||||
if (isDefaultAvatar)
|
||||
avatar->setPixmap(QPixmap(":img/contact_dark.png"));
|
||||
}
|
||||
|
||||
void FriendWidget::setAsInactiveChatroom()
|
||||
|
@ -160,9 +158,6 @@ void FriendWidget::setAsInactiveChatroom()
|
|||
QPalette pal3;
|
||||
pal3.setColor(QPalette::Background, QColor(65,65,65,255));
|
||||
this->setPalette(pal3);
|
||||
|
||||
if (isDefaultAvatar)
|
||||
avatar->setPixmap(QPixmap(":img/contact.png"));
|
||||
}
|
||||
|
||||
void FriendWidget::updateStatusLight()
|
||||
|
|
Loading…
Reference in New Issue
Block a user