Browse Source

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 3 years ago
parent
commit
ef999dfc99
2 changed files with 23 additions and 3 deletions
  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);
     color: palette(text);
 }
 }
 
 
+SceneTree,
+SourceTree {
+    padding: 3px;
+}
+
 SceneTree::item,
 SceneTree::item,
 SourceTree::item {
 SourceTree::item {
-	padding: 3px;
+    border-radius: 4px;
+    padding: 6px;
     color: palette(text);
     color: palette(text);
-	margin-bottom: 1px;
-	margin-top: 1px;
 	border: 0px solid transparent;
 	border: 0px solid transparent;
 }
 }
 
 
@@ -1093,6 +1097,11 @@ LockedCheckBox {
     margin-left: -2px;
     margin-left: -2px;
 }
 }
 
 
+LockedCheckBox::indicator {
+    width: 16px;
+    height: 16px;
+}
+
 LockedCheckBox::indicator:checked,
 LockedCheckBox::indicator:checked,
 LockedCheckBox::indicator:checked:hover {
 LockedCheckBox::indicator:checked:hover {
     image: url(./Dark/locked.svg);
     image: url(./Dark/locked.svg);
@@ -1111,6 +1120,11 @@ VisibilityCheckBox {
     margin-left: -1px;
     margin-left: -1px;
 }
 }
 
 
+VisibilityCheckBox::indicator {
+    width: 16px;
+    height: 16px;
+}
+
 VisibilityCheckBox::indicator:checked,
 VisibilityCheckBox::indicator:checked,
 VisibilityCheckBox::indicator:checked:hover {
 VisibilityCheckBox::indicator:checked:hover {
     image: url(./Dark/visible.svg);
     image: url(./Dark/visible.svg);

+ 6 - 0
UI/forms/OBSBasic.ui

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