System.qss 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. /* Intentionnally left blank */
  2. /* Themes are created using Qt CSS, you can visit */
  3. /* http://doc.qt.io/qt-5/stylesheet-reference.html and */
  4. /* http://doc.qt.io/qt-5/stylesheet-examples.html for examples. */
  5. /* OBS will use the theme filename for the settings. */
  6. /* You can ship images using relative paths in qss. */
  7. /* Dark Theme is a good place to start if you need */
  8. /* a template. */
  9. /* We need to set back the icons, or the preview wont stick. */
  10. * [themeID="addIconSmall"] {
  11. qproperty-icon: url(:/res/images/plus.svg);
  12. }
  13. * [themeID="removeIconSmall"] {
  14. qproperty-icon: url(:/res/images/minus.svg);
  15. }
  16. * [themeID="propertiesIconSmall"] {
  17. qproperty-icon: url(:/settings/images/settings/general.svg);
  18. }
  19. * [themeID="configIconSmall"] {
  20. qproperty-icon: url(:/settings/images/settings/general.svg);
  21. }
  22. * [themeID="upArrowIconSmall"] {
  23. qproperty-icon: url(:/res/images/up.svg);
  24. }
  25. * [themeID="refreshIconSmall"] {
  26. qproperty-icon: url(:/res/images/refresh.svg);
  27. }
  28. * [themeID="downArrowIconSmall"] {
  29. qproperty-icon: url(:/res/images/down.svg);
  30. }
  31. * [themeID="pauseIconSmall"] {
  32. qproperty-icon: url(:/res/images/media-pause.svg);
  33. }
  34. MuteCheckBox {
  35. outline: none;
  36. }
  37. MuteCheckBox::indicator:checked {
  38. image: url(:/res/images/mute.svg);
  39. }
  40. MuteCheckBox::indicator:unchecked {
  41. image: url(:/settings/images/settings/audio.svg);
  42. }
  43. SourceTreeSubItemCheckBox {
  44. background: transparent;
  45. outline: none;
  46. }
  47. SourceTreeSubItemCheckBox::indicator {
  48. width: 10px;
  49. height: 10px;
  50. }
  51. SourceTreeSubItemCheckBox::indicator:checked {
  52. image: url(:/res/images/expand.svg);
  53. }
  54. SourceTreeSubItemCheckBox::indicator:unchecked {
  55. image: url(:/res/images/down.svg);
  56. }
  57. OBSHotkeyLabel[hotkeyPairHover=true] {
  58. color: red;
  59. }
  60. /* Volume Control */
  61. VolumeMeter {
  62. qproperty-backgroundNominalColor: rgb(15, 100, 15);
  63. qproperty-backgroundWarningColor: rgb(100, 100, 15);
  64. qproperty-backgroundErrorColor: rgb(100, 15, 15);
  65. qproperty-foregroundNominalColor: rgb(50, 200, 50);
  66. qproperty-foregroundWarningColor: rgb(255, 200, 50);
  67. qproperty-foregroundErrorColor: rgb(200, 50, 50);
  68. qproperty-magnitudeColor: rgb(0, 0, 0);
  69. qproperty-majorTickColor: rgb(0, 0, 0);
  70. qproperty-minorTickColor: rgb(50, 50, 50);
  71. }
  72. /* Label warning/error */
  73. QLabel#warningLabel {
  74. color: rgb(192, 128, 0);
  75. font-weight: bold;
  76. }
  77. QLabel#errorLabel {
  78. color: rgb(192, 0, 0);
  79. font-weight: bold;
  80. }
  81. * [themeID="warning"] {
  82. color: rgb(192, 128, 0);
  83. font-weight: bold;
  84. }
  85. * [themeID="error"] {
  86. color: rgb(192, 0, 0);
  87. font-weight: bold;
  88. }
  89. * [themeID="good"] {
  90. color: rgb(0, 128, 0);
  91. font-weight: bold;
  92. }
  93. /* About dialog */
  94. * [themeID="aboutName"] {
  95. font-size: 36px;
  96. font-weight: bold;
  97. }
  98. * [themeID="aboutVersion"] {
  99. font-size: 16px;
  100. margin-bottom: 20px;
  101. }
  102. * [themeID="aboutInfo"] {
  103. margin-bottom: 20px;
  104. }
  105. * [themeID="aboutHLayout"] {
  106. background-color: #DCD9D7;
  107. }
  108. /* Preview background color */
  109. OBSQTDisplay {
  110. qproperty-displayBackgroundColor: rgb(76, 76, 76);
  111. }
  112. /* Preview/Program labels */
  113. * [themeID="previewProgramLabels"] {
  114. font-size: 18px;
  115. font-weight: bold;
  116. color: rgb(122,121,122);
  117. }
  118. /* Settings Icons */
  119. OBSBasicSettings {
  120. qproperty-generalIcon: url(:settings/images/settings/general.svg);
  121. qproperty-streamIcon: url(:settings/images/settings/stream.svg);
  122. qproperty-outputIcon: url(:settings/images/settings/output.svg);
  123. qproperty-audioIcon: url(:settings/images/settings/audio.svg);
  124. qproperty-videoIcon: url(:settings/images/settings/video.svg);
  125. qproperty-hotkeysIcon: url(:settings/images/settings/hotkeys.svg);
  126. qproperty-advancedIcon: url(:settings/images/settings/advanced.svg);
  127. }
  128. OBSBasicSettings QListWidget::item {
  129. padding-top: 5px;
  130. padding-bottom: 5px;
  131. }
  132. /* Locked CheckBox */
  133. LockedCheckBox {
  134. outline: none;
  135. background: transparent;
  136. }
  137. LockedCheckBox::indicator:checked {
  138. image: url(:res/images/locked.svg);
  139. }
  140. LockedCheckBox::indicator:unchecked {
  141. image: url(:res/images/unlocked.svg);
  142. }
  143. /* Visibility CheckBox */
  144. VisibilityCheckBox {
  145. outline: none;
  146. background: transparent;
  147. }
  148. VisibilityCheckBox::indicator:checked {
  149. image: url(:res/images/visible.svg);
  150. }
  151. VisibilityCheckBox::indicator:unchecked {
  152. image: url(:res/images/invisible.svg);
  153. }
  154. * [themeID="trashIcon"] {
  155. qproperty-icon: url(:res/images/trash.svg);
  156. }
  157. * [themeID="revertIcon"] {
  158. qproperty-icon: url(:res/images/revert.svg);
  159. }
  160. /* Source Icons */
  161. OBSBasic {
  162. qproperty-imageIcon: url(:res/images/sources/image.svg);
  163. qproperty-colorIcon: url(:res/images/sources/brush.svg);
  164. qproperty-slideshowIcon: url(:res/images/sources/slideshow.svg);
  165. qproperty-audioInputIcon: url(:res/images/sources/microphone.svg);
  166. qproperty-audioOutputIcon: url(:settings/images/settings/audio.svg);
  167. qproperty-desktopCapIcon: url(:settings/images/settings/video.svg);
  168. qproperty-windowCapIcon: url(:res/images/sources/window.svg);
  169. qproperty-gameCapIcon: url(:res/images/sources/gamepad.svg);
  170. qproperty-cameraIcon: url(:res/images/sources/camera.svg);
  171. qproperty-textIcon: url(:res/images/sources/text.svg);
  172. qproperty-mediaIcon: url(:res/images/sources/media.svg);
  173. qproperty-browserIcon: url(:res/images/sources/globe.svg);
  174. qproperty-groupIcon: url(:res/images/sources/group.svg);
  175. qproperty-sceneIcon: url(:res/images/sources/scene.svg);
  176. qproperty-defaultIcon: url(:res/images/sources/default.svg);
  177. }
  178. /* Scene Tree */
  179. SceneTree {
  180. qproperty-gridItemWidth: 150;
  181. qproperty-gridItemHeight: 24;
  182. }
  183. /* Save icon */
  184. * [themeID="replayIconSmall"] {
  185. qproperty-icon: url(:res/images/save.svg);
  186. }
  187. /* Studio Mode T-Bar */
  188. QSlider[themeID="tBarSlider"] {
  189. height: 24px;
  190. }
  191. QSlider::groove:horizontal[themeID="tBarSlider"] {
  192. border: 1px solid #4c4c4c;
  193. height: 5px;
  194. background: #DCD9D7;
  195. }
  196. QSlider::sub-page:horizontal[themeID="tBarSlider"] {
  197. background: #DCD9D7;
  198. border: 1px solid #4c4c4c;
  199. }
  200. QSlider::handle:horizontal[themeID="tBarSlider"] {
  201. background-color: #4c4c4c;
  202. width: 12px;
  203. height: 24px;
  204. margin: -24px 0px;
  205. }