System.qss 9.0 KB

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