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

Pixel-perfect spacing of chat form buttons

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2015-01-25 17:18:20 +01:00
parent 909ade6d5e
commit 3f433f1176
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
3 changed files with 13 additions and 10 deletions

View File

@ -130,13 +130,16 @@ GenericChatForm::GenericChatForm(QWidget *parent) :
headTextLayout->addWidget(nameLabel); headTextLayout->addWidget(nameLabel);
headTextLayout->addStretch(); headTextLayout->addStretch();
micButtonsLayout->setSpacing(0);
micButtonsLayout->addWidget(micButton, Qt::AlignTop | Qt::AlignRight); micButtonsLayout->addWidget(micButton, Qt::AlignTop | Qt::AlignRight);
micButtonsLayout->addSpacing(4);
micButtonsLayout->addWidget(volButton, Qt::AlignTop | Qt::AlignRight); micButtonsLayout->addWidget(volButton, Qt::AlignTop | Qt::AlignRight);
buttonsLayout->addLayout(micButtonsLayout, 0, 0, Qt::AlignTop | Qt::AlignRight); buttonsLayout->addLayout(micButtonsLayout, 0, 0, 2, 1, Qt::AlignTop | Qt::AlignRight);
buttonsLayout->addWidget(callButton, 0, 1, 2, 1, Qt::AlignTop); buttonsLayout->addWidget(callButton, 0, 1, 2, 1, Qt::AlignTop);
buttonsLayout->addWidget(videoButton, 0, 2, 2, 1, Qt::AlignTop); buttonsLayout->addWidget(videoButton, 0, 2, 2, 1, Qt::AlignTop);
buttonsLayout->setSpacing(1); buttonsLayout->setVerticalSpacing(0);
buttonsLayout->setHorizontalSpacing(4);
headLayout->addWidget(avatar, Qt::AlignTop | Qt::AlignLeft); headLayout->addWidget(avatar, Qt::AlignTop | Qt::AlignLeft);
headLayout->addSpacing(5); headLayout->addSpacing(5);

View File

@ -4,8 +4,8 @@ QPushButton#green
background-image: url(":/ui/micButton/micButton.png"); background-image: url(":/ui/micButton/micButton.png");
background-repeat: none; background-repeat: none;
border: none; border: none;
width: 25px; width: 22px;
height: 20px; height: 18px;
} }
QPushButton#green:hover QPushButton#green:hover
@ -19,8 +19,8 @@ QPushButton#red
background-image: url(":/ui/micButton/micButtonPressed.png"); background-image: url(":/ui/micButton/micButtonPressed.png");
background-repeat: none; background-repeat: none;
border: none; border: none;
width: 25px; width: 22px;
height: 20px; height: 18px;
} }
QPushButton#grey QPushButton#grey
@ -29,8 +29,8 @@ QPushButton#grey
background-image: url(":/ui/micButton/micButtonDisabled.png"); background-image: url(":/ui/micButton/micButtonDisabled.png");
background-repeat: none; background-repeat: none;
border: none; border: none;
width: 25px; width: 22px;
height: 20px; height: 18px;
} }
QPushButton:focus { QPushButton:focus {

View File

@ -4,7 +4,7 @@ QPushButton#green
background-image: url(":/ui/volButton/volButton.png"); background-image: url(":/ui/volButton/volButton.png");
background-repeat: none; background-repeat: none;
border: none; border: none;
width: 25px; width: 22px;
height: 18px; height: 18px;
} }
@ -19,7 +19,7 @@ QPushButton#red
background-image: url(":/ui/volButton/volButtonPressed.png"); background-image: url(":/ui/volButton/volButtonPressed.png");
background-repeat: none; background-repeat: none;
border: none; border: none;
width: 25px; width: 22px;
height: 18px; height: 18px;
} }