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:
parent
909ade6d5e
commit
3f433f1176
|
@ -130,13 +130,16 @@ GenericChatForm::GenericChatForm(QWidget *parent) :
|
|||
headTextLayout->addWidget(nameLabel);
|
||||
headTextLayout->addStretch();
|
||||
|
||||
micButtonsLayout->setSpacing(0);
|
||||
micButtonsLayout->addWidget(micButton, Qt::AlignTop | Qt::AlignRight);
|
||||
micButtonsLayout->addSpacing(4);
|
||||
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(videoButton, 0, 2, 2, 1, Qt::AlignTop);
|
||||
buttonsLayout->setSpacing(1);
|
||||
buttonsLayout->setVerticalSpacing(0);
|
||||
buttonsLayout->setHorizontalSpacing(4);
|
||||
|
||||
headLayout->addWidget(avatar, Qt::AlignTop | Qt::AlignLeft);
|
||||
headLayout->addSpacing(5);
|
||||
|
|
|
@ -4,8 +4,8 @@ QPushButton#green
|
|||
background-image: url(":/ui/micButton/micButton.png");
|
||||
background-repeat: none;
|
||||
border: none;
|
||||
width: 25px;
|
||||
height: 20px;
|
||||
width: 22px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
QPushButton#green:hover
|
||||
|
@ -19,8 +19,8 @@ QPushButton#red
|
|||
background-image: url(":/ui/micButton/micButtonPressed.png");
|
||||
background-repeat: none;
|
||||
border: none;
|
||||
width: 25px;
|
||||
height: 20px;
|
||||
width: 22px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
QPushButton#grey
|
||||
|
@ -29,8 +29,8 @@ QPushButton#grey
|
|||
background-image: url(":/ui/micButton/micButtonDisabled.png");
|
||||
background-repeat: none;
|
||||
border: none;
|
||||
width: 25px;
|
||||
height: 20px;
|
||||
width: 22px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
QPushButton:focus {
|
||||
|
|
|
@ -4,7 +4,7 @@ QPushButton#green
|
|||
background-image: url(":/ui/volButton/volButton.png");
|
||||
background-repeat: none;
|
||||
border: none;
|
||||
width: 25px;
|
||||
width: 22px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ QPushButton#red
|
|||
background-image: url(":/ui/volButton/volButtonPressed.png");
|
||||
background-repeat: none;
|
||||
border: none;
|
||||
width: 25px;
|
||||
width: 22px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user