System.qss 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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. * [themeID="filtersIcon"] {
  47. qproperty-icon: url(:/res/images/filter.svg);
  48. }
  49. MuteCheckBox {
  50. outline: none;
  51. }
  52. MuteCheckBox::indicator:checked {
  53. image: url(:/res/images/mute.svg);
  54. }
  55. MuteCheckBox::indicator:unchecked {
  56. image: url(:/settings/images/settings/audio.svg);
  57. }
  58. SourceTreeSubItemCheckBox {
  59. background: transparent;
  60. outline: none;
  61. }
  62. SourceTreeSubItemCheckBox::indicator {
  63. width: 10px;
  64. height: 10px;
  65. }
  66. SourceTreeSubItemCheckBox::indicator:checked {
  67. image: url(:/res/images/expand.svg);
  68. }
  69. SourceTreeSubItemCheckBox::indicator:unchecked {
  70. image: url(:/res/images/collapse.svg);
  71. }
  72. OBSHotkeyLabel[hotkeyPairHover=true] {
  73. color: red;
  74. }
  75. /* Volume Control */
  76. VolumeMeter {
  77. qproperty-backgroundNominalColor: rgb(15, 100, 15);
  78. qproperty-backgroundWarningColor: rgb(100, 100, 15);
  79. qproperty-backgroundErrorColor: rgb(100, 15, 15);
  80. qproperty-foregroundNominalColor: rgb(50, 200, 50);
  81. qproperty-foregroundWarningColor: rgb(255, 200, 50);
  82. qproperty-foregroundErrorColor: rgb(200, 50, 50);
  83. qproperty-magnitudeColor: rgb(0, 0, 0);
  84. qproperty-majorTickColor: rgb(0, 0, 0);
  85. qproperty-minorTickColor: rgb(50, 50, 50);
  86. qproperty-meterThickness: 3;
  87. /* The meter scale numbers normally use your QWidget font, with size */
  88. /* multiplied by meterFontScaling to get a proportionally smaller font. */
  89. /* To use a unique font for the numbers, specify font-family and/or */
  90. /* font-size here, and set meterFontScaling to 1.0. */
  91. qproperty-meterFontScaling: 0.7;
  92. }
  93. /* Label warning/error */
  94. QLabel#warningLabel {
  95. color: rgb(192, 128, 0);
  96. font-weight: bold;
  97. }
  98. QLabel#errorLabel {
  99. color: rgb(192, 0, 0);
  100. font-weight: bold;
  101. }
  102. * [themeID="warning"] {
  103. color: rgb(192, 128, 0);
  104. font-weight: bold;
  105. }
  106. * [themeID="error"] {
  107. color: rgb(192, 0, 0);
  108. font-weight: bold;
  109. }
  110. * [themeID="good"] {
  111. color: rgb(0, 128, 0);
  112. font-weight: bold;
  113. }
  114. /* macOS Separator Fix */
  115. QMainWindow::separator {
  116. background: transparent;
  117. width: 4px;
  118. height: 4px;
  119. }
  120. /* About dialog */
  121. * [themeID="aboutName"] {
  122. font-size: 36px;
  123. font-weight: bold;
  124. }
  125. * [themeID="aboutVersion"] {
  126. font-size: 16px;
  127. margin-bottom: 20px;
  128. }
  129. * [themeID="aboutInfo"] {
  130. margin-bottom: 20px;
  131. }
  132. * [themeID="aboutHLayout"] {
  133. background-color: #DCD9D7;
  134. }
  135. /* Preview background color */
  136. OBSQTDisplay {
  137. qproperty-displayBackgroundColor: rgb(76, 76, 76);
  138. }
  139. /* Preview/Program labels */
  140. * [themeID="previewProgramLabels"] {
  141. font-size: 18px;
  142. font-weight: bold;
  143. color: rgb(122,121,122);
  144. }
  145. /* Settings Icons */
  146. OBSBasicSettings {
  147. qproperty-generalIcon: url(:settings/images/settings/general.svg);
  148. qproperty-streamIcon: url(:settings/images/settings/stream.svg);
  149. qproperty-outputIcon: url(:settings/images/settings/output.svg);
  150. qproperty-audioIcon: url(:settings/images/settings/audio.svg);
  151. qproperty-videoIcon: url(:settings/images/settings/video.svg);
  152. qproperty-hotkeysIcon: url(:settings/images/settings/hotkeys.svg);
  153. qproperty-accessibilityIcon: url(:settings/images/settings/accessibility.svg);
  154. qproperty-advancedIcon: url(:settings/images/settings/advanced.svg);
  155. }
  156. OBSBasicSettings QListWidget::item {
  157. padding-top: 5px;
  158. padding-bottom: 5px;
  159. }
  160. /* Locked CheckBox */
  161. LockedCheckBox {
  162. outline: none;
  163. background: transparent;
  164. }
  165. LockedCheckBox::indicator:checked {
  166. image: url(:res/images/locked.svg);
  167. }
  168. LockedCheckBox::indicator:unchecked {
  169. image: url(:res/images/unlocked.svg);
  170. }
  171. /* Visibility CheckBox */
  172. VisibilityCheckBox {
  173. outline: none;
  174. background: transparent;
  175. }
  176. VisibilityCheckBox::indicator:checked {
  177. image: url(:res/images/visible.svg);
  178. }
  179. VisibilityCheckBox::indicator:unchecked {
  180. image: url(:res/images/invisible.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 {
  237. padding: 3px 10px;
  238. }
  239. #contextContainer QPushButton[themeID2=contextBarButton] {
  240. padding: 3px 6px;
  241. }
  242. #contextContainer QPushButton#sourcePropertiesButton {
  243. qproperty-icon: url(:/settings/images/settings/general.svg);
  244. }
  245. #contextContainer QPushButton#sourceFiltersButton {
  246. qproperty-icon: url(:/res/images/filter.svg);
  247. }
  248. #contextContainer QPushButton#sourceInteractButton {
  249. qproperty-icon: url(:/res/images/interact.svg);
  250. }
  251. /* Media icons */
  252. * [themeID="playIcon"] {
  253. qproperty-icon: url(:res/images/media/media_play.svg);
  254. }
  255. * [themeID="pauseIcon"] {
  256. qproperty-icon: url(:/res/images/media/media_pause.svg);
  257. }
  258. * [themeID="restartIcon"] {
  259. qproperty-icon: url(:/res/images/media/media_restart.svg);
  260. }
  261. * [themeID="stopIcon"] {
  262. qproperty-icon: url(:/res/images/media/media_stop.svg);
  263. }
  264. * [themeID="nextIcon"] {
  265. qproperty-icon: url(:/res/images/media/media_next.svg);
  266. }
  267. * [themeID="previousIcon"] {
  268. qproperty-icon: url(:/res/images/media/media_previous.svg);
  269. }
  270. /* YouTube Integration */
  271. OBSYoutubeActions {
  272. qproperty-thumbPlaceholder: url(:res/images/sources/image.svg);
  273. }
  274. #ytEventList QLabel {
  275. background-color: #e1e1e1;
  276. border: 1px solid #ddd;
  277. }
  278. #ytEventList QLabel:hover {
  279. background-color: #eee;
  280. border: 1px solid #777;
  281. }
  282. #ytEventList QLabel[isSelectedEvent=true] {
  283. background-color: #ccc;
  284. border: 1px solid #444;
  285. }
  286. /* Calendar Widget */
  287. QCalendarWidget QToolButton {
  288. padding: 0px 12px;
  289. }
  290. #qt_calendar_monthbutton::menu-indicator {
  291. image: url(./Dark/down.svg);
  292. subcontrol-position: right;
  293. padding-top: 2px;
  294. padding-right: 2px;
  295. height: 8px;
  296. width: 8px;
  297. }
  298. #qt_calendar_monthbutton::menu-indicator:hover {
  299. image: url(:/res/images/down.svg);
  300. color: red;
  301. }
  302. QCalendarWidget #qt_calendar_prevmonth {
  303. padding: 2px;
  304. qproperty-icon: url(./Dark/left.svg);
  305. icon-size: 16px, 16px;
  306. }
  307. QCalendarWidget #qt_calendar_nextmonth {
  308. padding: 2px;
  309. qproperty-icon: url(./Dark/right.svg);
  310. icon-size: 16px, 16px;
  311. }