Dark.qss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  1. /******************************************************************************/
  2. /* Copyright (C) 2014-2015 by Philippe Groarke <[email protected]> */
  3. /* */
  4. /* */
  5. /* This program is free software: you can redistribute it and/or modify */
  6. /* it under the terms of the GNU General Public License as published by */
  7. /* the Free Software Foundation, either version 2 of the License, or */
  8. /* (at your option) any later version. */
  9. /* */
  10. /* This program is distributed in the hope that it will be useful, */
  11. /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
  12. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
  13. /* GNU General Public License for more details. */
  14. /* */
  15. /* You should have received a copy of the GNU General Public License */
  16. /* along with this program. If not, see <http://www.gnu.org/licenses/>. */
  17. /******************************************************************************/
  18. /* Colors */
  19. /* rgb(225,224,225); /* veryLight */
  20. /* rgb(200,199,200); /* lighter */
  21. /* rgb(122,121,122); /* light */
  22. /* rgb(88,87,88); /* kindaDark */
  23. /* rgb(58,57,58); /* dark */
  24. /* rgb(31,30,31); /* veryDark */
  25. /* rgb(11,10,11); /* veryVeryDark */
  26. /* rgb(42,130,218); /* blue */
  27. /* Custom theme information. This will set the application's QPalette, as
  28. * well as pass to QML via the OBSTheme object.
  29. * Can also use OBSTheme::disabled, OBSTheme::active, and OBSTheme::inactive.
  30. * Using it without will set all three (making 'active' a bit redundant) */
  31. OBSTheme {
  32. window: rgb(58,57,58); /* dark */
  33. windowText: rgb(225,224,225); /* veryLight */
  34. base: rgb(31,30,31); /* veryDark */
  35. alternateBase: rgb(11,10,11); /* veryVeryDark */
  36. text: rgb(225,224,225); /* veryLight */
  37. button: rgb(88,87,88); /* kindaDark */
  38. buttonText: rgb(225,224,225); /* veryLight */
  39. brightText: rgb(200,199,200); /* lighter */
  40. light: rgb(88,87,88); /* kindaDark */
  41. mid: rgb(58,57,58); /* dark */
  42. dark: rgb(31,30,31); /* veryDark */
  43. shadow: rgb(11,10,11); /* veryVeryDark */
  44. highlight: rgb(42,130,218); /* blue */
  45. highlightText: rgb(0,0,0);
  46. link: rgb(42,130,218); /* blue */
  47. linkVisited: rgb(42,130,218); /* blue */
  48. }
  49. OBSTheme::disabled {
  50. text: rgb(122,121,122); /* light */
  51. buttonText: rgb(122,121,122); /* light */
  52. brightText: rgb(122,121,122); /* light */
  53. }
  54. OBSTheme::inactive {
  55. highlight: rgb(48,47,48);
  56. highlightText: rgb(255, 255, 255);
  57. }
  58. /* General style, we override only what is needed. */
  59. QWidget {
  60. background-color: rgb(58,57,58); /* dark */
  61. alternate-background-color: rgb(31,30,31); /* veryDark */
  62. color: rgb(225,224,225); /* veryLight */
  63. selection-background-color: rgb(42,130,218); /* blue */
  64. selection-color: black;
  65. }
  66. * [frameShape="1"], * [frameShape="2"], * [frameShape="3"], * [frameShape="4"], * [frameShape="5"], * [frameShape="6"] {
  67. border: 1px solid rgb(31,30,31);
  68. }
  69. /* Misc */
  70. QWidget::disabled {
  71. color: 2px solid rgb(200,199,200); /* lighter */
  72. }
  73. QAbstractItemView {
  74. background-color: rgb(31,30,31); /* veryDark */
  75. }
  76. QToolTip {
  77. background-color: rgb(31,30,31); /* veryDark */
  78. color: rgb(205,205,205);
  79. border: none;
  80. }
  81. QMenuBar::item {
  82. background-color: rgb(58,57,58); /* dark */
  83. }
  84. QListWidget::item:selected:!active {
  85. color: rgb(255, 255, 255);
  86. background-color: rgb(48,47,48);
  87. }
  88. /* Dock Widget */
  89. QDockWidget::title {
  90. text-align: center;
  91. background-color: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1,
  92. stop: 0 rgb(86,85,86),
  93. stop: 0.1 rgb(82,81,82),
  94. stop: 0.5 rgb(78,77,78),
  95. stop: 0.9 rgb(74,73,74),
  96. stop: 1 rgb(70,69,70));
  97. }
  98. QDockWidget::close-button, QDockWidget::float-button {
  99. border: 1px solid transparent;
  100. background: transparent;
  101. padding: 0px;
  102. }
  103. QDockWidget::close-button:hover, QDockWidget::float-button:hover {
  104. background: transparent;
  105. }
  106. QDockWidget::close-button:pressed, QDockWidget::float-button:pressed {
  107. padding: 1px -1px -1px 1px;
  108. }
  109. /* Group Box */
  110. QGroupBox {
  111. border: 1px solid rgb(31,30,31); /* veryDark */;
  112. border-radius: 5px;
  113. padding-top: 16px;
  114. }
  115. /* ScrollBars */
  116. ::corner {
  117. background-color: rgb(58,57,58); /* dark */
  118. border: none;
  119. }
  120. QScrollBar:vertical {
  121. background-color: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 0,
  122. stop: 0 rgb(31,30,31), /* veryDark */
  123. stop: 0.75 rgb(54, 53, 54),
  124. stop: 1 rgb(58,57,58)); /* dark */
  125. width: 14px;
  126. }
  127. QScrollBar::handle:vertical {
  128. background-color: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 0,
  129. stop: 0 rgb(122,121,122), /* light */
  130. stop: 0.25 rgb(100, 99, 100),
  131. stop: 1 rgb(88,87,88)); /* kindaDark */
  132. min-height: 20px;
  133. margin: 2px;
  134. border-radius: 5px;
  135. border-width: 1px;
  136. border: 1px solid rgb(31,30,31); /* veryDark */
  137. }
  138. QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical {
  139. border: none;
  140. background: none;
  141. }
  142. QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical, QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
  143. border: none;
  144. background: none;
  145. color: none;
  146. }
  147. QScrollBar:horizontal {
  148. background-color: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1,
  149. stop: 0 rgb(31,30,31), /* veryDark */
  150. stop: 0.75 rgb(54, 53, 54),
  151. stop: 1 rgb(58,57,58)); /* dark */
  152. height: 14px;
  153. }
  154. QScrollBar::handle:horizontal {
  155. background-color: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1,
  156. stop: 0 rgb(122,121,122), /* light */
  157. stop: 0.25 rgb(100, 99, 100),
  158. stop: 1 rgb(88,87,88)); /* kindaDark */
  159. min-width: 20px;
  160. margin: 2px;
  161. border-radius: 5px;
  162. border-width: 1px;
  163. border: 1px solid rgb(31,30,31); /* veryDark */
  164. }
  165. QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal {
  166. border: none;
  167. background: none;
  168. }
  169. QScrollBar::left-arrow:horizontal, QScrollBar::right-arrow:horizontal, QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
  170. border: none;
  171. background: none;
  172. color: none;
  173. }
  174. /* Scenes and Sources toolbar */
  175. QToolBar {
  176. background-color: rgb(58,57,58); /* dark */
  177. border: none;
  178. }
  179. QToolButton:hover {
  180. background-color: rgb(122,121,122); /* light */
  181. border-radius: none;
  182. }
  183. QToolButton:pressed {
  184. background-color: rgb(31,30,31); /* veryDark */
  185. border-radius: none;
  186. }
  187. * [themeID="addIconSmall"] {
  188. qproperty-icon: url(./Dark/plus.png);
  189. }
  190. * [themeID="removeIconSmall"] {
  191. qproperty-icon: url(./Dark/minus.png);
  192. }
  193. * [themeID="propertiesIconSmall"] {
  194. qproperty-icon: url(./Dark/cogwheel.png);
  195. }
  196. * [themeID="configIconSmall"] {
  197. qproperty-icon: url(./Dark/cogwheel.png);
  198. }
  199. * [themeID="refreshIconSmall"] {
  200. qproperty-icon: url(./Dark/refresh.png);
  201. }
  202. * [themeID="upArrowIconSmall"] {
  203. qproperty-icon: url(./Dark/up_arrow.png);
  204. }
  205. * [themeID="downArrowIconSmall"] {
  206. qproperty-icon: url(./Dark/down_arrow.png);
  207. }
  208. /* Tab Widget */
  209. QTabWidget::pane { /* The tab widget frame */
  210. border-top: 1px solid rgb(31,30,31); /* veryDark */
  211. }
  212. QTabWidget::tab-bar {
  213. alignment: center;
  214. }
  215. QTabBar::tab {
  216. background-color: rgb(88,87,88); /* kindaDark */
  217. border: none;
  218. padding: 5px;
  219. min-width: 50px;
  220. margin: 1px;
  221. }
  222. QTabBar::tab:top {
  223. border-bottom: 1px transparent;
  224. border-top-left-radius: 5px;
  225. border-top-right-radius: 5px;
  226. }
  227. QTabBar::tab:bottom {
  228. padding-top: 1px;
  229. margin-bottom: 4px;
  230. border-bottom-left-radius: 5px;
  231. border-bottom-right-radius: 5px;
  232. height: 14px;
  233. }
  234. QTabBar::tab:selected {
  235. background-color: rgb(31,30,31); /* veryDark */
  236. }
  237. QTabBar::tab:hover {
  238. background-color: rgb(122,121,122); /* light */
  239. }
  240. QTabBar::tab:pressed {
  241. background-color: rgb(31,30,31); /* veryDark */
  242. }
  243. /* ComboBox */
  244. QComboBox {
  245. background-color: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1,
  246. stop: 0 rgb(86,85,86),
  247. stop: 0.1 rgb(82,81,82),
  248. stop: 0.5 rgb(78,77,78),
  249. stop: 0.9 rgb(74,73,74),
  250. stop: 1 rgb(70,69,70));
  251. border-style: solid;
  252. border: 1px;
  253. border-radius: 3px;
  254. border-color: rgb(31,30,31); /* veryDark */
  255. padding: 2px;
  256. padding-left: 10px;
  257. }
  258. QComboBox::drop-down {
  259. border:none;
  260. border-left: 1px solid rgba(31,30,31,155); /* veryDark */
  261. width: 20px;
  262. }
  263. QComboBox::down-arrow {
  264. qproperty-alignment: AlignTop;
  265. image: url(./Dark/updown.png);
  266. width: 100%;
  267. }
  268. QComboBox:on {
  269. background-color: rgb(31,30,31); /* veryDark */
  270. }
  271. QComboBox:editable {
  272. border-top-left-radius: 0px;
  273. border-bottom-left-radius: 0px;
  274. }
  275. QComboBox::drop-down:editable {
  276. border-top-right-radius: 3px;
  277. border-bottom-right-radius: 3px;
  278. }
  279. QComboBox::down-arrow:editable {
  280. qproperty-alignment: AlignTop;
  281. image: url(./Dark/down_arrow.png);
  282. width: 8%;
  283. }
  284. /* Textedits etc */
  285. QLineEdit, QTextEdit, QPlainTextEdit {
  286. background-color: rgb(31,30,31); /* veryDark */
  287. border: none;
  288. padding-left: 2px;
  289. }
  290. /* Spinbox and doubleSpinbox */
  291. QSpinBox, QDoubleSpinBox {
  292. background-color: rgb(31,30,31); /* veryDark */
  293. border: none;
  294. padding-left: 2px;
  295. padding-right: 15px;
  296. margin-right: 10px;
  297. }
  298. QSpinBox::up-button, QDoubleSpinBox::up-button {
  299. subcontrol-origin: margin;
  300. subcontrol-position: top right; /* position at the top right corner */
  301. background-color: rgb(88,87,88); /* kindaDark */
  302. border: 1px solid rgb(31,30,31); /* veryDark */
  303. border-radius: 3px;
  304. border-width: 0;
  305. border-bottom-left-radius: 0;
  306. border-bottom-right-radius: 0;
  307. border-bottom-width: 0;
  308. }
  309. QSpinBox::down-button, QDoubleSpinBox::down-button {
  310. subcontrol-origin: margin;
  311. subcontrol-position: bottom right; /* position at the top right corner */
  312. background-color: rgb(88,87,88); /* kindaDark */
  313. border: 1px solid rgb(31,30,31); /* veryDark */
  314. border-radius: 3px;
  315. border-width: 0;
  316. border-top-left-radius: 0;
  317. border-top-right-radius: 0;
  318. border-top-width: 0;
  319. }
  320. QSpinBox::up-button:hover, QSpinBox::down-button:hover, QDoubleSpinBox::up-button:hover, QDoubleSpinBox::down-button:hover {
  321. background-color: rgb(122,121,122); /* light */
  322. }
  323. QSpinBox::up-button:pressed, QSpinBox::down-button:pressed, QDoubleSpinBox::up-button:pressed, QDoubleSpinBox::down-button:pressed {
  324. background-color: rgb(58,57,58); /* dark */
  325. }
  326. QSpinBox::up-button:disabled, QSpinBox::up-button:off, QSpinBox::down-button:disabled, QSpinBox::down-button:off {
  327. background-color: rgb(58,57,58); /* dark */
  328. }
  329. QDoubleSpinBox::up-button:disabled, QDoubleSpinBox::up-button:off, QDoubleSpinBox::down-button:disabled, QDoubleSpinBox::down-button:off {
  330. background-color: rgb(58,57,58); /* dark */
  331. }
  332. QSpinBox::up-arrow, QDoubleSpinBox::up-arrow {
  333. image: url(./Dark/up_arrow.png);
  334. width: 100%;
  335. }
  336. QSpinBox::down-arrow, QDoubleSpinBox::down-arrow {
  337. image: url(./Dark/down_arrow.png);
  338. width: 100%;
  339. }
  340. /* Buttons */
  341. QPushButton {
  342. color: rgb(225,224,225); /* veryLight */
  343. background-color: rgb(88,87,88); /* kindaDark */
  344. border: none;
  345. border-radius: 3px;
  346. padding: 4px;
  347. padding-left: 20px;
  348. padding-right: 20px;
  349. }
  350. QPushButton::flat {
  351. background-color: rgb(58,57,58); /* dark */
  352. }
  353. QPushButton:hover {
  354. background-color: rgb(122,121,122); /* light */
  355. }
  356. QPushButton:pressed {
  357. background-color: rgb(31,30,31); /* veryDark */
  358. }
  359. QPushButton:checked {
  360. background-color: rgb(122,121,122); /* light */
  361. }
  362. QPushButton::menu-indicator {
  363. image: url(./Dark/down_arrow.png);
  364. subcontrol-position: right;
  365. subcontrol-origin: padding;
  366. width: 25px;
  367. }
  368. /* Sliders */
  369. QSlider::groove:horizontal {
  370. background-color: QLinearGradient(x1: 0, y1: 1, x2: 0, y2: 0,
  371. stop: 0 rgb(50, 49, 50), /* dark */
  372. stop: 0.75 rgb(88,87,88)); /* kindaDark */
  373. height: 4px;
  374. border: none;
  375. border-radius: 2px;
  376. }
  377. QSlider::handle:horizontal {
  378. background-color: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1,
  379. stop: 0 rgb(240,239,240), /* lighter */
  380. stop: 0.25 rgb(200,199,200),
  381. stop: 1 rgb(162,161,162)); /* light */
  382. border: 1px solid rgb(58,57,58); /* dark */
  383. border-radius: 3px;
  384. height: 10px;
  385. width: 18px;
  386. margin: -3px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
  387. }
  388. QSlider::handle:horizontal:pressed {
  389. background-color: QLinearGradient(x1: 0, y1: 1, x2: 0, y2: 0,
  390. stop: 0 rgb(240,239,240), /* lighter */
  391. stop: 0.25 rgb(200,199,200),
  392. stop: 1 rgb(162,161,162)); /* light */
  393. }
  394. QSlider::sub-page:horizontal {
  395. background-color: rgb(42,130,218); /* blue */
  396. border-radius: 2px;
  397. }
  398. QSlider::sub-page:horizontal:disabled {
  399. background-color: QLinearGradient(x1: 0, y1: 1, x2: 0, y2: 0,
  400. stop: 0 rgb(31,30,31), /* veryDark */
  401. stop: 0.75 rgb(50, 49, 50)); /* dark */
  402. border-radius: 2px;
  403. }
  404. QSlider::groove:vertical {
  405. background-color: QLinearGradient(x1: 1, y1: 0, x2: 0, y2: 0,
  406. stop: 0 rgb(50, 49, 50), /* dark */
  407. stop: 0.75 rgb(88,87,88)); /* kindaDark */
  408. width: 4px;
  409. border: none;
  410. border-radius: 2px;
  411. }
  412. QSlider::handle:vertical {
  413. background-color: QLinearGradient(x1: 1, y1: 0, x2: 0, y2: 0,
  414. stop: 0 rgb(240,239,240), /* lighter */
  415. stop: 0.25 rgb(200,199,200),
  416. stop: 1 rgb(162,161,162)); /* light */
  417. border: 1px solid rgb(58,57,58); /* dark */
  418. border-radius: 3px;
  419. width: 10px;
  420. height: 18px;
  421. margin: 0 -3px; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
  422. }
  423. QSlider::handle:vertical:pressed {
  424. background-color: QLinearGradient(x1: 1, y1: 0, x2: 0, y2: 0,
  425. stop: 0 rgb(240,239,240), /* lighter */
  426. stop: 0.25 rgb(200,199,200),
  427. stop: 1 rgb(162,161,162)); /* light */
  428. }
  429. QSlider::add-page:vertical {
  430. background-color: rgb(42,130,218); /* blue */
  431. border-radius: 2px;
  432. }
  433. QSlider::add-page:vertical:disabled {
  434. background-color: QLinearGradient(x1: 1, y1: 0, x2: 0, y2: 0,
  435. stop: 0 rgb(31,30,31), /* veryDark */
  436. stop: 0.75 rgb(50, 49, 50)); /* dark */
  437. border-radius: 2px;
  438. }
  439. QSlider::handle:hover {
  440. background-color: rgb(200,199,200); /* veryLight */
  441. }
  442. QSlider::handle:disabled {
  443. background-color: rgb(122,121,122); /* light */
  444. }
  445. /* Volume Control */
  446. VolumeMeter {
  447. qproperty-backgroundNominalColor: rgb(38, 127, 38);
  448. qproperty-backgroundWarningColor: rgb(127, 127, 38);
  449. qproperty-backgroundErrorColor: rgb(127, 38, 38);
  450. qproperty-foregroundNominalColor: rgb(76, 255, 76);
  451. qproperty-foregroundWarningColor: rgb(255, 255, 76);
  452. qproperty-foregroundErrorColor: rgb(255, 76, 76);
  453. qproperty-magnitudeColor: rgb(0, 0, 0);
  454. qproperty-majorTickColor: rgb(225,224,225); /* veryLight */
  455. qproperty-minorTickColor: rgb(122,121,122); /* light */
  456. }
  457. /* Status Bar */
  458. QStatusBar::item {
  459. border: none;
  460. }
  461. /* Mute CheckBox */
  462. MuteCheckBox {
  463. outline: none;
  464. }
  465. MuteCheckBox::indicator:checked {
  466. image: url(./Dark/mute.png);
  467. }
  468. MuteCheckBox::indicator:unchecked {
  469. image: url(./Dark/unmute.png);
  470. }
  471. OBSHotkeyLabel[hotkeyPairHover=true] {
  472. color: red;
  473. }
  474. /* Group Collapse Checkbox */
  475. SourceTreeSubItemCheckBox {
  476. background: transparent;
  477. outline: none;
  478. }
  479. SourceTreeSubItemCheckBox::indicator {
  480. width: 10px;
  481. height: 10px;
  482. }
  483. SourceTreeSubItemCheckBox::indicator:checked {
  484. image: url(./Dark/expand.png);
  485. }
  486. SourceTreeSubItemCheckBox::indicator:unchecked {
  487. image: url(./Dark/collapse.png);
  488. }
  489. /* Label warning/error */
  490. QLabel#warningLabel {
  491. color: rgb(192, 128, 0);
  492. font-weight: bold;
  493. }
  494. QLabel#errorLabel {
  495. color: rgb(192, 0, 0);
  496. font-weight: bold;
  497. }
  498. * [themeID="warning"] {
  499. color: rgb(192, 128, 0);
  500. font-weight: bold;
  501. }
  502. * [themeID="error"] {
  503. color: rgb(192, 0, 0);
  504. font-weight: bold;
  505. }
  506. * [themeID="good"] {
  507. color: rgb(0, 192, 0);
  508. font-weight: bold;
  509. }