Browse Source

Pixel-perfect spacing of chat form buttons

pull/1049/head
Tux3 / Mlkj / !Lev.uXFMLA 11 years ago
parent
commit
3f433f1176
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 7
      src/widget/form/genericchatform.cpp
  2. 12
      ui/micButton/micButton.css
  3. 4
      ui/volButton/volButton.css

7
src/widget/form/genericchatform.cpp

@ -130,13 +130,16 @@ GenericChatForm::GenericChatForm(QWidget *parent) : @@ -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);

12
ui/micButton/micButton.css

@ -4,8 +4,8 @@ QPushButton#green @@ -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 @@ -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 @@ -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
ui/volButton/volButton.css

@ -4,7 +4,7 @@ QPushButton#green @@ -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 @@ -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…
Cancel
Save