1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Make chatform somewhat prettier

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-06-29 17:04:49 +02:00
parent f8fb0964b2
commit beaebc2056

View File

@ -26,7 +26,10 @@ ChatForm::ChatForm(Friend* chatFriend)
name->setText(chatFriend->widget->name.text()); name->setText(chatFriend->widget->name.text());
name->setFont(bold); name->setFont(bold);
statusMessage->setText(chatFriend->widget->statusMessage.text()); statusMessage->setText(chatFriend->widget->statusMessage.text());
avatar->setPixmap(*chatFriend->widget->avatar.pixmap());
// No real avatar support in toxcore, better draw a pretty picture
//avatar->setPixmap(*chatFriend->widget->avatar.pixmap());
avatar->setPixmap(QPixmap("img/contact list icons/contact_dark.png"));
chatAreaWidget->setLayout(mainChatLayout); chatAreaWidget->setLayout(mainChatLayout);
QString chatAreaStylesheet = ""; QString chatAreaStylesheet = "";
@ -45,7 +48,7 @@ ChatForm::ChatForm(Friend* chatFriend)
chatArea->setFrameStyle(QFrame::NoFrame); chatArea->setFrameStyle(QFrame::NoFrame);
mainChatLayout->setColumnStretch(1,1); mainChatLayout->setColumnStretch(1,1);
mainChatLayout->setSpacing(10); mainChatLayout->setSpacing(5);
footButtonsSmall->setSpacing(2); footButtonsSmall->setSpacing(2);