mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
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:
committed by
Matt Gajownik
parent
0032d349c9
commit
b3c5524a48
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user