Browse Source

UI: Align Advanced Audio Percent toggle to Volume text

Due to the placement of addStretch(), the checkbox was being
attached to the Mono label when resizing the dialog.
Matt Gajownik 5 years ago
parent
commit
ef5bb70db0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      UI/window-basic-adv-audio.cpp

+ 2 - 1
UI/window-basic-adv-audio.cpp

@@ -28,6 +28,7 @@ OBSBasicAdvAudio::OBSBasicAdvAudio(QWidget *parent)
 
 	QLabel *volLabel = new QLabel(QTStr("Basic.AdvAudio.Volume"));
 	volLabel->setStyleSheet("font-weight: bold;");
+	volLabel->setContentsMargins(0, 0, 6, 0);
 
 	usePercent = new QCheckBox();
 	usePercent->setStyleSheet("font-weight: bold;");
@@ -44,8 +45,8 @@ OBSBasicAdvAudio::OBSBasicAdvAudio(QWidget *parent)
 	QHBoxLayout *volLayout = new QHBoxLayout();
 	volLayout->setContentsMargins(0, 0, 0, 0);
 	volLayout->addWidget(volLabel);
-	volLayout->addStretch();
 	volLayout->addWidget(usePercent);
+	volLayout->addStretch();
 
 	int idx = 0;
 	mainLayout = new QGridLayout;