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

Fix chat head style for high DPI

Fixes #75
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-10-23 21:53:45 +02:00
parent 5fae61c4e8
commit 1dc77a5d32
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 7 additions and 1 deletions

View File

@ -52,12 +52,12 @@ ChatForm::ChatForm(Friend* chatFriend)
statusMessageLabel = new CroppingLabel();
statusMessageLabel->setObjectName("statusLabel");
statusMessageLabel->setFont(Style::getFont(Style::Medium));
statusMessageLabel->setMinimumHeight(Style::getFont(Style::Medium).pixelSize());
netcam = new NetCamView();
headTextLayout->addWidget(statusMessageLabel);
headTextLayout->addStretch();
headTextLayout->setSpacing(0);
menu.addAction(tr("Load History..."), this, SLOT(onLoadHistory()));

View File

@ -40,6 +40,7 @@ GenericChatForm::GenericChatForm(QWidget *parent) :
nameLabel = new CroppingLabel();
nameLabel->setObjectName("nameLabel");
nameLabel->setMinimumHeight(Style::getFont(Style::Medium).pixelSize());
avatar = new MaskablePixmapWidget(this, QSize(40,40), ":/img/avatar_mask.png");
QHBoxLayout *headLayout = new QHBoxLayout(), *mainFootLayout = new QHBoxLayout();
@ -54,11 +55,16 @@ GenericChatForm::GenericChatForm(QWidget *parent) :
sendButton = new QPushButton();
emoteButton = new QPushButton();
// Setting the sizes in the CSS doesn't work (glitch with high DPIs)
fileButton = new QPushButton();
callButton = new QPushButton();
callButton->setFixedSize(50,40);
videoButton = new QPushButton();
videoButton->setFixedSize(50,40);
volButton = new QPushButton();
volButton->setFixedSize(25,20);
micButton = new QPushButton();
micButton->setFixedSize(25,20);
footButtonsSmall->setSpacing(2);