UI: Add scene names to preview/program labels

This makes it easier for users to determine what
is the current preview or program scene.
This commit is contained in:
Clayton Groeneveld 2022-06-18 02:05:46 -05:00 • committed by Matt Gajownik
commit b3c5524a48
5 changed files with 54 additions and 30 deletions

View file

@ -455,17 +455,6 @@ OBSBasic::OBSBasic(QWidget *parent)
QPoint newPos = curPos + statsDockPos;
statsDock->move(newPos);
ui->previewLabel->setProperty("themeID", "previewProgramLabels");
ui->previewLabel->style()->polish(ui->previewLabel);
bool labels = config_get_bool(GetGlobalConfig(), "BasicWindow",
"StudioModeLabels");
if (!previewProgramMode)
ui->previewLabel->setHidden(true);
else
ui->previewLabel->setHidden(!labels);
ui->previewDisabledWidget->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui->previewDisabledWidget,
SIGNAL(customContextMenuRequested(const QPoint &)), this,
@ -2998,6 +2987,7 @@ void OBSBasic::RenameSources(OBSSource source, QString newName,
OBSProjector::UpdateMultiviewProjectors();
UpdateContextBar();
UpdatePreviewProgramIndicators();
}
void OBSBasic::ClearContextBar()
@ -4317,11 +4307,7 @@ void OBSBasic::ResetUI()
else
ui->previewLayout->setDirection(QBoxLayout::LeftToRight);
if (previewProgramMode)
ui->previewLabel->setHidden(!labels);
if (programLabel)
programLabel->setHidden(!labels);
UpdatePreviewProgramIndicators();
}
int OBSBasic::ResetVideo()