mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
audiodialog.cpp
: Scale buttons size
This commit is contained in:
parent
6ac8e781e2
commit
02543229fe
1 changed files with 4 additions and 3 deletions
|
@ -32,6 +32,7 @@ audioDialog::audioDialog(QWidget *parent) :
|
|||
// Centering dialog
|
||||
int x = (screenGeometry.width() - this->width()) / 2;
|
||||
int y = (screenGeometry.height() - this->height()) / 2;
|
||||
int screenSizeProduct = screenGeometry.width() * screenGeometry.height();
|
||||
this->move(x, y);
|
||||
|
||||
ui->minusBtn->setProperty("type", "borderless");
|
||||
|
@ -44,9 +45,9 @@ audioDialog::audioDialog(QWidget *parent) :
|
|||
ui->queueBtn->setProperty("type", "borderless");
|
||||
ui->refreshBtn->setProperty("type", "borderless");
|
||||
|
||||
int topButtonsSize = 55;
|
||||
int menuButtonsSize = 80;
|
||||
int playBtnsSize = 50;
|
||||
int topButtonsSize = screenSizeProduct / 14298.6;
|
||||
int menuButtonsSize = screenSizeProduct / 9830;
|
||||
int playBtnsSize = screenSizeProduct / 15728;
|
||||
|
||||
ui->minusBtn->setIconSize(QSize{topButtonsSize,topButtonsSize});
|
||||
ui->plusBtn->setIconSize(QSize{topButtonsSize,topButtonsSize});
|
||||
|
|
Loading…
Reference in a new issue