|
@@ -1294,8 +1294,7 @@ static void UpdateFPSLabels(OBSFrameRatePropertyWidget *w)
|
|
|
w->currentFPS->setHidden(true);
|
|
|
w->timePerFrame->setHidden(true);
|
|
|
if (!option)
|
|
|
- w->warningLabel->setStyleSheet(
|
|
|
- "QLabel { color: red; }");
|
|
|
+ w->warningLabel->setObjectName("errorLabel");
|
|
|
|
|
|
return;
|
|
|
}
|
|
@@ -1305,9 +1304,9 @@ static void UpdateFPSLabels(OBSFrameRatePropertyWidget *w)
|
|
|
|
|
|
media_frames_per_second match{};
|
|
|
if (!option && !matches_ranges(match, *valid_fps, w->fps_ranges, true))
|
|
|
- w->warningLabel->setStyleSheet("QLabel { color: red; }");
|
|
|
+ w->warningLabel->setObjectName("errorLabel");
|
|
|
else
|
|
|
- w->warningLabel->setStyleSheet("");
|
|
|
+ w->warningLabel->setObjectName("");
|
|
|
|
|
|
auto convert_to_fps = media_frames_per_second_to_fps;
|
|
|
auto convert_to_frame_interval =
|
|
@@ -1520,8 +1519,8 @@ void OBSPropertiesView::AddProperty(obs_property_t *property,
|
|
|
label = new QLabel(QT_UTF8(obs_property_description(property)));
|
|
|
|
|
|
if (label) {
|
|
|
- if (warning) //TODO: select color based on background color
|
|
|
- label->setStyleSheet("QLabel { color: red; }");
|
|
|
+ if (warning)
|
|
|
+ label->setObjectName("errorLabel");
|
|
|
|
|
|
if (minSize) {
|
|
|
label->setMinimumWidth(minSize);
|