浏览代码

Revert "UI: Use qss themeID for red labels in properties view"

This reverts commit 10022a41a9d5e33da57b1ddabf4d24b60d100744.
jp9000 7 年之前
父节点
当前提交
8208a54df0
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      UI/properties-view.cpp

+ 5 - 5
UI/properties-view.cpp

@@ -1198,9 +1198,9 @@ static void UpdateFPSLabels(OBSFrameRatePropertyWidget *w)
 	if (!valid_fps) {
 	if (!valid_fps) {
 		w->currentFPS->setHidden(true);
 		w->currentFPS->setHidden(true);
 		w->timePerFrame->setHidden(true);
 		w->timePerFrame->setHidden(true);
-		if (!option) {
-			w->warningLabel->setProperty("themeID", "error");
-		}
+		if (!option)
+			w->warningLabel->setStyleSheet(
+					"QLabel { color: red; }");
 
 
 		return;
 		return;
 	}
 	}
@@ -1210,9 +1210,9 @@ static void UpdateFPSLabels(OBSFrameRatePropertyWidget *w)
 
 
 	media_frames_per_second match{};
 	media_frames_per_second match{};
 	if (!option && !matches_ranges(match, *valid_fps, w->fps_ranges, true))
 	if (!option && !matches_ranges(match, *valid_fps, w->fps_ranges, true))
-		w->warningLabel->setProperty("themeID", "error");
+		w->warningLabel->setStyleSheet("QLabel { color: red; }");
 	else
 	else
-		w->warningLabel->setProperty("themeID", "");
+		w->warningLabel->setStyleSheet("");
 
 
 	auto convert_to_fps = media_frames_per_second_to_fps;
 	auto convert_to_fps = media_frames_per_second_to_fps;
 	auto convert_to_frame_interval =
 	auto convert_to_frame_interval =