瀏覽代碼

UI: Fix settings properties view background

In the Yami theme, the background color in the properties view in the
settings dialog would be incorrect.
cg2121 3 年之前
父節點
當前提交
5d803058b4
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 5 0
      UI/data/themes/Yami.qss
  2. 1 0
      UI/properties-view.cpp

+ 5 - 0
UI/data/themes/Yami.qss

@@ -234,6 +234,11 @@ OBSBasicSettings QListWidget::item {
     padding: 6px;
 }
 
+/* Settings properties view */
+OBSBasicSettings #PropertiesContainer {
+    background-color: palette(dark);
+}
+
 /* Dock Widget */
 OBSDock > QWidget {
     background: palette(dark);

+ 1 - 0
UI/properties-view.cpp

@@ -116,6 +116,7 @@ void OBSPropertiesView::RefreshProperties()
 		widget->deleteLater();
 
 	widget = new QWidget();
+	widget->setObjectName("PropertiesContainer");
 
 	QFormLayout *layout = new QFormLayout;
 	layout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);