From beaebc20563f990c858cae409498b6c8641dbf30 Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Sun, 29 Jun 2014 17:04:49 +0200 Subject: [PATCH] Make chatform somewhat prettier --- widget/form/chatform.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/widget/form/chatform.cpp b/widget/form/chatform.cpp index 4ed5f7efb..ffab2ca9f 100644 --- a/widget/form/chatform.cpp +++ b/widget/form/chatform.cpp @@ -26,7 +26,10 @@ ChatForm::ChatForm(Friend* chatFriend) name->setText(chatFriend->widget->name.text()); name->setFont(bold); 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); QString chatAreaStylesheet = ""; @@ -45,7 +48,7 @@ ChatForm::ChatForm(Friend* chatFriend) chatArea->setFrameStyle(QFrame::NoFrame); mainChatLayout->setColumnStretch(1,1); - mainChatLayout->setSpacing(10); + mainChatLayout->setSpacing(5); footButtonsSmall->setSpacing(2);