Procházet zdrojové kódy

UI: Adjust list style of scenes and sources

Exact same set of changes as before, but additionally remove the
margins from the items since it was artificially increasing the
spacing between them.
Georges Basile Stavracas Neto před 3 roky
rodič
revize
ef999dfc99
2 změnil soubory, kde provedl 23 přidání a 3 odebrání
  1. 17 3
      UI/data/themes/Yami.qss
  2. 6 0
      UI/forms/OBSBasic.ui

+ 17 - 3
UI/data/themes/Yami.qss

@@ -171,12 +171,16 @@ QListWidget::item {
     color: palette(text);
 }
 
+SceneTree,
+SourceTree {
+    padding: 3px;
+}
+
 SceneTree::item,
 SourceTree::item {
-	padding: 3px;
+    border-radius: 4px;
+    padding: 6px;
     color: palette(text);
-	margin-bottom: 1px;
-	margin-top: 1px;
 	border: 0px solid transparent;
 }
 
@@ -1093,6 +1097,11 @@ LockedCheckBox {
     margin-left: -2px;
 }
 
+LockedCheckBox::indicator {
+    width: 16px;
+    height: 16px;
+}
+
 LockedCheckBox::indicator:checked,
 LockedCheckBox::indicator:checked:hover {
     image: url(./Dark/locked.svg);
@@ -1111,6 +1120,11 @@ VisibilityCheckBox {
     margin-left: -1px;
 }
 
+VisibilityCheckBox::indicator {
+    width: 16px;
+    height: 16px;
+}
+
 VisibilityCheckBox::indicator:checked,
 VisibilityCheckBox::indicator:checked:hover {
     image: url(./Dark/visible.svg);

+ 6 - 0
UI/forms/OBSBasic.ui

@@ -793,6 +793,9 @@
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
+          <property name="spacing">
+           <number>1</number>
+          </property>
           <property name="contextMenuPolicy">
            <enum>Qt::CustomContextMenu</enum>
           </property>
@@ -928,6 +931,9 @@
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
+          <property name="spacing">
+           <number>1</number>
+          </property>
           <property name="contextMenuPolicy">
            <enum>Qt::CustomContextMenu</enum>
           </property>