System.obt 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  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. @OBSThemeMeta {
  10. name: 'System';
  11. id: 'com.obsproject.System';
  12. author: 'Warchamp7';
  13. }
  14. /* We need to set back the icons, or the preview wont stick. */
  15. * [themeID="addIconSmall"] {
  16. qproperty-icon: url(:/res/images/plus.svg);
  17. }
  18. * [themeID="removeIconSmall"] {
  19. qproperty-icon: url(:/res/images/minus.svg);
  20. }
  21. * [themeID="clearIconSmall"] {
  22. qproperty-icon: url(:/res/images/entry-clear.svg);
  23. }
  24. * [themeID="propertiesIconSmall"] {
  25. qproperty-icon: url(:/settings/images/settings/general.svg);
  26. }
  27. * [themeID="configIconSmall"] {
  28. qproperty-icon: url(:/settings/images/settings/general.svg);
  29. }
  30. * [themeID="upArrowIconSmall"] {
  31. qproperty-icon: url(:/res/images/up.svg);
  32. }
  33. * [themeID="refreshIconSmall"] {
  34. qproperty-icon: url(:/res/images/refresh.svg);
  35. }
  36. * [themeID="downArrowIconSmall"] {
  37. qproperty-icon: url(:/res/images/down.svg);
  38. }
  39. * [themeID="pauseIconSmall"] {
  40. qproperty-icon: url(:/res/images/media-pause.svg);
  41. }
  42. * [themeID="menuIconSmall"] {
  43. qproperty-icon: url(:res/images/dots-vert.svg);
  44. }
  45. * [themeID="cogsIcon"] {
  46. qproperty-icon: url(:/res/images/cogs.svg);
  47. }
  48. * [themeID="filtersIcon"] {
  49. qproperty-icon: url(:/res/images/filter.svg);
  50. }
  51. MuteCheckBox {
  52. outline: none;
  53. }
  54. MuteCheckBox::indicator:checked {
  55. image: url(:/res/images/mute.svg);
  56. }
  57. MuteCheckBox::indicator:indeterminate {
  58. image: url(theme:Dark/unassigned.svg);
  59. }
  60. MuteCheckBox::indicator:unchecked {
  61. image: url(:/settings/images/settings/audio.svg);
  62. }
  63. QCheckBox[sourceTreeSubItem=true] {
  64. background: transparent;
  65. outline: none;
  66. }
  67. QCheckBox[sourceTreeSubItem=true]::indicator {
  68. width: 10px;
  69. height: 10px;
  70. }
  71. QCheckBox[sourceTreeSubItem=true]::indicator:checked {
  72. image: url(:/res/images/expand.svg);
  73. }
  74. QCheckBox[sourceTreeSubItem=true]::indicator:unchecked {
  75. image: url(:/res/images/collapse.svg);
  76. }
  77. OBSHotkeyLabel[hotkeyPairHover=true] {
  78. color: red;
  79. }
  80. /* Volume Control */
  81. VolumeMeter {
  82. qproperty-backgroundNominalColor: rgb(15, 100, 15);
  83. qproperty-backgroundWarningColor: rgb(100, 100, 15);
  84. qproperty-backgroundErrorColor: rgb(100, 15, 15);
  85. qproperty-foregroundNominalColor: rgb(50, 200, 50);
  86. qproperty-foregroundWarningColor: rgb(255, 200, 50);
  87. qproperty-foregroundErrorColor: rgb(200, 50, 50);
  88. qproperty-magnitudeColor: rgb(0, 0, 0);
  89. qproperty-majorTickColor: rgb(0, 0, 0);
  90. qproperty-minorTickColor: rgb(50, 50, 50);
  91. qproperty-meterThickness: 3;
  92. /* The meter scale numbers normally use your QWidget font, with size */
  93. /* multiplied by meterFontScaling to get a proportionally smaller font. */
  94. /* To use a unique font for the numbers, specify font-family and/or */
  95. /* font-size here, and set meterFontScaling to 1.0. */
  96. qproperty-meterFontScaling: 0.7;
  97. }
  98. /* Label warning/error */
  99. QLabel#warningLabel {
  100. color: rgb(192, 128, 0);
  101. font-weight: bold;
  102. }
  103. QLabel#errorLabel {
  104. color: rgb(192, 0, 0);
  105. font-weight: bold;
  106. }
  107. * [themeID="warning"] {
  108. color: rgb(192, 128, 0);
  109. font-weight: bold;
  110. }
  111. * [themeID="error"] {
  112. color: rgb(192, 0, 0);
  113. font-weight: bold;
  114. }
  115. * [themeID="good"] {
  116. color: rgb(0, 128, 0);
  117. font-weight: bold;
  118. }
  119. /* macOS Separator Fix */
  120. QMainWindow::separator {
  121. background: transparent;
  122. width: 4px;
  123. height: 4px;
  124. }
  125. /* About dialog */
  126. * [themeID="aboutName"] {
  127. font-size: 36px;
  128. font-weight: bold;
  129. }
  130. * [themeID="aboutVersion"] {
  131. font-size: 16px;
  132. margin-bottom: 20px;
  133. }
  134. * [themeID="aboutInfo"] {
  135. margin-bottom: 20px;
  136. }
  137. * [themeID="aboutHLayout"] {
  138. background-color: #DCD9D7;
  139. }
  140. /* Preview background color */
  141. OBSQTDisplay {
  142. qproperty-displayBackgroundColor: rgb(76, 76, 76);
  143. }
  144. /* Preview/Program labels */
  145. * [themeID="previewProgramLabels"] {
  146. font-size: 18px;
  147. font-weight: bold;
  148. color: rgb(122,121,122);
  149. }
  150. /* Settings Icons */
  151. OBSBasicSettings {
  152. qproperty-generalIcon: url(:settings/images/settings/general.svg);
  153. qproperty-streamIcon: url(:settings/images/settings/stream.svg);
  154. qproperty-outputIcon: url(:settings/images/settings/output.svg);
  155. qproperty-audioIcon: url(:settings/images/settings/audio.svg);
  156. qproperty-videoIcon: url(:settings/images/settings/video.svg);
  157. qproperty-hotkeysIcon: url(:settings/images/settings/hotkeys.svg);
  158. qproperty-accessibilityIcon: url(:settings/images/settings/accessibility.svg);
  159. qproperty-advancedIcon: url(:settings/images/settings/advanced.svg);
  160. }
  161. OBSBasicSettings QListWidget::item {
  162. padding-top: 5px;
  163. padding-bottom: 5px;
  164. }
  165. /* Locked CheckBox */
  166. QCheckBox[lockCheckBox=true] {
  167. outline: none;
  168. background: transparent;
  169. }
  170. QCheckBox[lockCheckBox=true]::indicator:checked {
  171. image: url(:res/images/locked.svg);
  172. }
  173. QCheckBox[lockCheckBox=true]::indicator:unchecked {
  174. image: url(:res/images/unlocked.svg);
  175. }
  176. /* Visibility CheckBox */
  177. QCheckBox[visibilityCheckBox=true] {
  178. outline: none;
  179. background: transparent;
  180. }
  181. QCheckBox[visibilityCheckBox=true]::indicator:checked {
  182. image: url(:res/images/visible.svg);
  183. }
  184. QCheckBox[visibilityCheckBox=true]::indicator:unchecked {
  185. image: url(:res/images/invisible.svg);
  186. }
  187. * [themeID="revertIcon"] {
  188. qproperty-icon: url(:res/images/revert.svg);
  189. }
  190. OBSMissingFiles {
  191. qproperty-warningIcon: url(:res/images/alert.svg);
  192. }
  193. /* Source Icons */
  194. OBSBasic {
  195. qproperty-imageIcon: url(:res/images/sources/image.svg);
  196. qproperty-colorIcon: url(:res/images/sources/brush.svg);
  197. qproperty-slideshowIcon: url(:res/images/sources/slideshow.svg);
  198. qproperty-audioInputIcon: url(:res/images/sources/microphone.svg);
  199. qproperty-audioOutputIcon: url(:settings/images/settings/audio.svg);
  200. qproperty-desktopCapIcon: url(:settings/images/settings/video.svg);
  201. qproperty-windowCapIcon: url(:res/images/sources/window.svg);
  202. qproperty-gameCapIcon: url(:res/images/sources/gamepad.svg);
  203. qproperty-cameraIcon: url(:res/images/sources/camera.svg);
  204. qproperty-textIcon: url(:res/images/sources/text.svg);
  205. qproperty-mediaIcon: url(:res/images/sources/media.svg);
  206. qproperty-browserIcon: url(:res/images/sources/globe.svg);
  207. qproperty-groupIcon: url(:res/images/sources/group.svg);
  208. qproperty-sceneIcon: url(:res/images/sources/scene.svg);
  209. qproperty-defaultIcon: url(:res/images/sources/default.svg);
  210. qproperty-audioProcessOutputIcon: url(:res/images/sources/windowaudio.svg);
  211. }
  212. /* Scene Tree */
  213. SceneTree {
  214. qproperty-gridItemWidth: 150;
  215. qproperty-gridItemHeight: 24;
  216. }
  217. /* Save icon */
  218. * [themeID="replayIconSmall"] {
  219. qproperty-icon: url(:res/images/save.svg);
  220. }
  221. /* Studio Mode T-Bar */
  222. QSlider[themeID="tBarSlider"] {
  223. height: 24px;
  224. }
  225. QSlider::groove:horizontal[themeID="tBarSlider"] {
  226. border: 1px solid #4c4c4c;
  227. height: 5px;
  228. background: #DCD9D7;
  229. }
  230. QSlider::sub-page:horizontal[themeID="tBarSlider"] {
  231. background: #DCD9D7;
  232. border: 1px solid #4c4c4c;
  233. }
  234. QSlider::handle:horizontal[themeID="tBarSlider"] {
  235. background-color: #4c4c4c;
  236. width: 12px;
  237. height: 24px;
  238. margin: -24px 0px;
  239. }
  240. /* Source Context */
  241. #contextContainer QPushButton {
  242. padding: 3px 10px;
  243. }
  244. #contextContainer QPushButton[themeID2=contextBarButton] {
  245. padding: 3px 6px;
  246. }
  247. #contextContainer QPushButton#sourcePropertiesButton {
  248. qproperty-icon: url(:/settings/images/settings/general.svg);
  249. }
  250. #contextContainer QPushButton#sourceFiltersButton {
  251. qproperty-icon: url(:/res/images/filter.svg);
  252. }
  253. #contextContainer QPushButton#sourceInteractButton {
  254. qproperty-icon: url(:/res/images/interact.svg);
  255. }
  256. /* Media icons */
  257. * [themeID="playIcon"] {
  258. qproperty-icon: url(:res/images/media/media_play.svg);
  259. }
  260. * [themeID="pauseIcon"] {
  261. qproperty-icon: url(:/res/images/media/media_pause.svg);
  262. }
  263. * [themeID="restartIcon"] {
  264. qproperty-icon: url(:/res/images/media/media_restart.svg);
  265. }
  266. * [themeID="stopIcon"] {
  267. qproperty-icon: url(:/res/images/media/media_stop.svg);
  268. }
  269. * [themeID="nextIcon"] {
  270. qproperty-icon: url(:/res/images/media/media_next.svg);
  271. }
  272. * [themeID="previousIcon"] {
  273. qproperty-icon: url(:/res/images/media/media_previous.svg);
  274. }
  275. /* YouTube Integration */
  276. OBSYoutubeActions {
  277. qproperty-thumbPlaceholder: url(:res/images/sources/image.svg);
  278. }
  279. #ytEventList QLabel {
  280. background-color: #e1e1e1;
  281. border: 1px solid #ddd;
  282. }
  283. #ytEventList QLabel:hover {
  284. background-color: #eee;
  285. border: 1px solid #777;
  286. }
  287. #ytEventList QLabel[isSelectedEvent=true] {
  288. background-color: #ccc;
  289. border: 1px solid #444;
  290. }
  291. /* Calendar Widget */
  292. QCalendarWidget QToolButton {
  293. padding: 0px 12px;
  294. }
  295. #qt_calendar_monthbutton::menu-indicator {
  296. image: url(theme:Dark/down.svg);
  297. subcontrol-position: right;
  298. padding-top: 2px;
  299. padding-right: 2px;
  300. height: 8px;
  301. width: 8px;
  302. }
  303. #qt_calendar_monthbutton::menu-indicator:hover {
  304. image: url(:/res/images/down.svg);
  305. color: red;
  306. }
  307. QCalendarWidget #qt_calendar_prevmonth {
  308. padding: 2px;
  309. qproperty-icon: url(theme:Dark/left.svg);
  310. icon-size: 16px;
  311. }
  312. QCalendarWidget #qt_calendar_nextmonth {
  313. padding: 2px;
  314. qproperty-icon: url(theme:Dark/right.svg);
  315. icon-size: 16px;
  316. }
  317. /* Status Bar */
  318. StatusBarWidget > QFrame {
  319. padding: 0px 12px 8px;
  320. }