1
0

System.qss 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  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. qproperty-meterThickness: 3;
  72. /* The meter scale numbers normally use your QWidget font, with size */
  73. /* multiplied by meterFontScaling to get a proportionally smaller font. */
  74. /* To use a unique font for the numbers, specify font-family and/or */
  75. /* font-size here, and set meterFontScaling to 1.0. */
  76. qproperty-meterFontScaling: 0.7;
  77. }
  78. /* Label warning/error */
  79. QLabel#warningLabel {
  80. color: rgb(192, 128, 0);
  81. font-weight: bold;
  82. }
  83. QLabel#errorLabel {
  84. color: rgb(192, 0, 0);
  85. font-weight: bold;
  86. }
  87. * [themeID="warning"] {
  88. color: rgb(192, 128, 0);
  89. font-weight: bold;
  90. }
  91. * [themeID="error"] {
  92. color: rgb(192, 0, 0);
  93. font-weight: bold;
  94. }
  95. * [themeID="good"] {
  96. color: rgb(0, 128, 0);
  97. font-weight: bold;
  98. }
  99. /* About dialog */
  100. * [themeID="aboutName"] {
  101. font-size: 36px;
  102. font-weight: bold;
  103. }
  104. * [themeID="aboutVersion"] {
  105. font-size: 16px;
  106. margin-bottom: 20px;
  107. }
  108. * [themeID="aboutInfo"] {
  109. margin-bottom: 20px;
  110. }
  111. * [themeID="aboutHLayout"] {
  112. background-color: #DCD9D7;
  113. }
  114. /* Preview background color */
  115. OBSQTDisplay {
  116. qproperty-displayBackgroundColor: rgb(76, 76, 76);
  117. }
  118. /* Preview/Program labels */
  119. * [themeID="previewProgramLabels"] {
  120. font-size: 18px;
  121. font-weight: bold;
  122. color: rgb(122,121,122);
  123. }
  124. /* Settings Icons */
  125. OBSBasicSettings {
  126. qproperty-generalIcon: url(:settings/images/settings/general.svg);
  127. qproperty-streamIcon: url(:settings/images/settings/stream.svg);
  128. qproperty-outputIcon: url(:settings/images/settings/output.svg);
  129. qproperty-audioIcon: url(:settings/images/settings/audio.svg);
  130. qproperty-videoIcon: url(:settings/images/settings/video.svg);
  131. qproperty-hotkeysIcon: url(:settings/images/settings/hotkeys.svg);
  132. qproperty-advancedIcon: url(:settings/images/settings/advanced.svg);
  133. }
  134. OBSBasicSettings QListView::item {
  135. padding-top: 5px;
  136. padding-bottom: 5px;
  137. }
  138. /* Locked CheckBox */
  139. LockedCheckBox {
  140. outline: none;
  141. background: transparent;
  142. }
  143. LockedCheckBox::indicator:checked {
  144. image: url(:res/images/locked.svg);
  145. }
  146. LockedCheckBox::indicator:unchecked {
  147. image: url(:res/images/unlocked.svg);
  148. }
  149. /* Visibility CheckBox */
  150. VisibilityCheckBox {
  151. outline: none;
  152. background: transparent;
  153. }
  154. VisibilityCheckBox::indicator:checked {
  155. image: url(:res/images/visible.svg);
  156. }
  157. VisibilityCheckBox::indicator:unchecked {
  158. image: url(:res/images/invisible.svg);
  159. }
  160. * [themeID="trashIcon"] {
  161. qproperty-icon: url(:res/images/trash.svg);
  162. }
  163. * [themeID="revertIcon"] {
  164. qproperty-icon: url(:res/images/revert.svg);
  165. }
  166. OBSMissingFiles {
  167. qproperty-warningIcon: url(:res/images/alert.svg);
  168. }
  169. /* Source Icons */
  170. OBSBasic {
  171. qproperty-imageIcon: url(:res/images/sources/image.svg);
  172. qproperty-colorIcon: url(:res/images/sources/brush.svg);
  173. qproperty-slideshowIcon: url(:res/images/sources/slideshow.svg);
  174. qproperty-audioInputIcon: url(:res/images/sources/microphone.svg);
  175. qproperty-audioOutputIcon: url(:settings/images/settings/audio.svg);
  176. qproperty-desktopCapIcon: url(:settings/images/settings/video.svg);
  177. qproperty-windowCapIcon: url(:res/images/sources/window.svg);
  178. qproperty-gameCapIcon: url(:res/images/sources/gamepad.svg);
  179. qproperty-cameraIcon: url(:res/images/sources/camera.svg);
  180. qproperty-textIcon: url(:res/images/sources/text.svg);
  181. qproperty-mediaIcon: url(:res/images/sources/media.svg);
  182. qproperty-browserIcon: url(:res/images/sources/globe.svg);
  183. qproperty-groupIcon: url(:res/images/sources/group.svg);
  184. qproperty-sceneIcon: url(:res/images/sources/scene.svg);
  185. qproperty-defaultIcon: url(:res/images/sources/default.svg);
  186. }
  187. /* Scene Tree */
  188. SceneTree {
  189. qproperty-gridItemWidth: 150;
  190. qproperty-gridItemHeight: 24;
  191. }
  192. /* Save icon */
  193. * [themeID="replayIconSmall"] {
  194. qproperty-icon: url(:res/images/save.svg);
  195. }
  196. /* Studio Mode T-Bar */
  197. QSlider[themeID="tBarSlider"] {
  198. height: 24px;
  199. }
  200. QSlider::groove:horizontal[themeID="tBarSlider"] {
  201. border: 1px solid #4c4c4c;
  202. height: 5px;
  203. background: #DCD9D7;
  204. }
  205. QSlider::sub-page:horizontal[themeID="tBarSlider"] {
  206. background: #DCD9D7;
  207. border: 1px solid #4c4c4c;
  208. }
  209. QSlider::handle:horizontal[themeID="tBarSlider"] {
  210. background-color: #4c4c4c;
  211. width: 12px;
  212. height: 24px;
  213. margin: -24px 0px;
  214. }
  215. /* Source Context */
  216. #contextContainer QPushButton[themeID2=contextBarButton] {
  217. padding: 0px;
  218. }
  219. /* Media icons */
  220. * [themeID="playIcon"] {
  221. qproperty-icon: url(:res/images/media/media_play.svg);
  222. }
  223. * [themeID="pauseIcon"] {
  224. qproperty-icon: url(:/res/images/media/media_pause.svg);
  225. }
  226. * [themeID="restartIcon"] {
  227. qproperty-icon: url(:/res/images/media/media_restart.svg);
  228. }
  229. * [themeID="stopIcon"] {
  230. qproperty-icon: url(:/res/images/media/media_stop.svg);
  231. }
  232. * [themeID="nextIcon"] {
  233. qproperty-icon: url(:/res/images/media/media_next.svg);
  234. }
  235. * [themeID="previousIcon"] {
  236. qproperty-icon: url(./Dark/media/media_previous.svg);
  237. }
  238. /* YouTube Integration */
  239. OBSYoutubeActions {
  240. qproperty-thumbPlaceholder: url(:res/images/sources/image.svg);
  241. }
  242. #ytEventList QLabel {
  243. background-color: #e1e1e1;
  244. border: 1px solid #ddd;
  245. }
  246. #ytEventList QLabel:hover {
  247. background-color: #eee;
  248. border: 1px solid #777;
  249. }
  250. #ytEventList QLabel[isSelectedEvent=true] {
  251. background-color: #ccc;
  252. border: 1px solid #444;
  253. }
  254. /* Calendar Widget */
  255. QCalendarWidget QToolButton {
  256. padding: 0px 12px;
  257. }
  258. #qt_calendar_monthbutton::menu-indicator {
  259. image: url(./Dark/down.svg);
  260. subcontrol-position: right;
  261. padding-top: 2px;
  262. padding-right: 2px;
  263. height: 8px;
  264. width: 8px;
  265. }
  266. #qt_calendar_monthbutton::menu-indicator:hover {
  267. image: url(:/res/images/down.svg);
  268. color: red;
  269. }
  270. QCalendarWidget #qt_calendar_prevmonth {
  271. padding: 2px;
  272. qproperty-icon: url(./Dark/left.svg);
  273. icon-size: 16px, 16px;
  274. }
  275. QCalendarWidget #qt_calendar_nextmonth {
  276. padding: 2px;
  277. qproperty-icon: url(./Dark/expand.svg);
  278. icon-size: 16px, 16px;
  279. }