System.qss 8.9 KB

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