Fix some styling quirks

This commit is contained in:
David Marsh 2024-07-15 13:38:40 +01:00
parent ea2a29925b
commit 4e859e5882

View File

@ -127,9 +127,13 @@ auto outputGroupStyle = QString("background-color: %1; padding: 0px;")
void showVerticalWarning(QVBoxLayout *verticalLayout) void showVerticalWarning(QVBoxLayout *verticalLayout)
{ {
auto verticalWarning = new QWidget; auto verticalWarning = new QWidget;
verticalWarning->setContentsMargins(0, 0, 0, 0);
auto verticalWarningLayout = new QVBoxLayout; auto verticalWarningLayout = new QVBoxLayout;
verticalWarningLayout->setContentsMargins(0, 0, 0, 0);
auto label = new QLabel(QString::fromUtf8(obs_module_text("NoVerticalWarning"))); auto label = new QLabel(QString::fromUtf8(obs_module_text("NoVerticalWarning")));
label->setStyleSheet(QString("padding: 0px;"));
label->setWordWrap(true); label->setWordWrap(true);
verticalWarningLayout->addWidget(label); verticalWarningLayout->addWidget(label);
verticalWarning->setLayout(verticalWarningLayout); verticalWarning->setLayout(verticalWarningLayout);
@ -142,11 +146,13 @@ MultistreamDock::MultistreamDock(QWidget *parent) : QFrame(parent)
// Main layout // Main layout
auto mainLayout = new QVBoxLayout; auto mainLayout = new QVBoxLayout;
mainLayout->setContentsMargins(0, 0, 0, 0); mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setSpacing(0);
setLayout(mainLayout); setLayout(mainLayout);
auto t = new QWidget; auto t = new QWidget;
auto tl = new QVBoxLayout; auto tl = new QVBoxLayout;
tl->setSpacing(8); // between canvas groups tl->setSpacing(8); // between canvas groups
tl->setContentsMargins(0, 0, 0, 0);
t->setStyleSheet(QString("padding: 0px; margin:0px;")); t->setStyleSheet(QString("padding: 0px; margin:0px;"));
t->setLayout(tl); t->setLayout(tl);
@ -220,8 +226,12 @@ MultistreamDock::MultistreamDock(QWidget *parent) : QFrame(parent)
scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
mainLayout->addWidget(scrollArea, 1); mainLayout->addWidget(scrollArea, 1);
// Bottom Button Row
auto buttonRow = new QHBoxLayout; auto buttonRow = new QHBoxLayout;
buttonRow->setContentsMargins(0, 0, 0, 0); buttonRow->setContentsMargins(8, 6, 8, 4);
buttonRow->setSpacing(8);
// Config Button
configButton = new QPushButton; configButton = new QPushButton;
configButton->setMinimumHeight(30); configButton->setMinimumHeight(30);
configButton->setProperty("themeID", "configIconSmall"); configButton->setProperty("themeID", "configIconSmall");
@ -259,6 +269,7 @@ MultistreamDock::MultistreamDock(QWidget *parent) : QFrame(parent)
buttonRow->addWidget(configButton); buttonRow->addWidget(configButton);
// Aitum Button
auto aitumButton = new QPushButton; auto aitumButton = new QPushButton;
aitumButton->setMinimumHeight(30); aitumButton->setMinimumHeight(30);
//aitumButton->setSizePolicy(sp2); //aitumButton->setSizePolicy(sp2);