style.qss 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268
  1. /*
  2. * The MIT License (MIT)
  3. *
  4. * Copyright (c) <2013-2014> <Colin Duquesnoy>
  5. *
  6. * Permission is hereby granted, free of charge, to any person obtaining a copy
  7. * of this software and associated documentation files (the "Software"), to deal
  8. * in the Software without restriction, including without limitation the rights
  9. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  10. * copies of the Software, and to permit persons to whom the Software is
  11. * furnished to do so, subject to the following conditions:
  12. * The above copyright notice and this permission notice shall be included in
  13. * all copies or substantial portions of the Software.
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  20. * THE SOFTWARE.
  21. */
  22. QToolTip
  23. {
  24. border: 1px solid #76797C;
  25. background-color: rgb(90, 102, 117);;
  26. color: white;
  27. padding: 5px;
  28. opacity: 200;
  29. }
  30. QWidget
  31. {
  32. color: #eff0f1;
  33. background-color: #31363b;
  34. selection-background-color:#3daee9;
  35. selection-color: #eff0f1;
  36. background-clip: border;
  37. border-image: none;
  38. border: 0px transparent black;
  39. outline: 0;
  40. }
  41. QWidget:item:hover
  42. {
  43. background-color: #18465d;
  44. color: #eff0f1;
  45. }
  46. QWidget:item:selected
  47. {
  48. background-color: #18465d;
  49. }
  50. QCheckBox
  51. {
  52. spacing: 5px;
  53. outline: none;
  54. color: #eff0f1;
  55. margin-bottom: 2px;
  56. }
  57. QCheckBox:disabled
  58. {
  59. color: #76797C;
  60. }
  61. QCheckBox::indicator,
  62. QGroupBox::indicator
  63. {
  64. width: 18px;
  65. height: 18px;
  66. }
  67. QGroupBox::indicator
  68. {
  69. margin-left: 2px;
  70. }
  71. QCheckBox::indicator:unchecked
  72. {
  73. image: url(:/qss_icons/rc/checkbox_unchecked.png);
  74. }
  75. QCheckBox::indicator:unchecked:hover,
  76. QCheckBox::indicator:unchecked:focus,
  77. QCheckBox::indicator:unchecked:pressed,
  78. QGroupBox::indicator:unchecked:hover,
  79. QGroupBox::indicator:unchecked:focus,
  80. QGroupBox::indicator:unchecked:pressed
  81. {
  82. border: none;
  83. image: url(:/qss_icons/rc/checkbox_unchecked_focus.png);
  84. }
  85. QCheckBox::indicator:checked
  86. {
  87. image: url(:/qss_icons/rc/checkbox_checked.png);
  88. }
  89. QCheckBox::indicator:checked:hover,
  90. QCheckBox::indicator:checked:focus,
  91. QCheckBox::indicator:checked:pressed,
  92. QGroupBox::indicator:checked:hover,
  93. QGroupBox::indicator:checked:focus,
  94. QGroupBox::indicator:checked:pressed
  95. {
  96. border: none;
  97. image: url(:/qss_icons/rc/checkbox_checked_focus.png);
  98. }
  99. QCheckBox::indicator:indeterminate
  100. {
  101. image: url(:/qss_icons/rc/checkbox_indeterminate.png);
  102. }
  103. QCheckBox::indicator:indeterminate:focus,
  104. QCheckBox::indicator:indeterminate:hover,
  105. QCheckBox::indicator:indeterminate:pressed
  106. {
  107. image: url(:/qss_icons/rc/checkbox_indeterminate_focus.png);
  108. }
  109. QCheckBox::indicator:checked:disabled,
  110. QGroupBox::indicator:checked:disabled
  111. {
  112. image: url(:/qss_icons/rc/checkbox_checked_disabled.png);
  113. }
  114. QCheckBox::indicator:unchecked:disabled,
  115. QGroupBox::indicator:unchecked:disabled
  116. {
  117. image: url(:/qss_icons/rc/checkbox_unchecked_disabled.png);
  118. }
  119. QRadioButton
  120. {
  121. spacing: 5px;
  122. outline: none;
  123. color: #eff0f1;
  124. margin-bottom: 2px;
  125. }
  126. QRadioButton:disabled
  127. {
  128. color: #76797C;
  129. }
  130. QRadioButton::indicator
  131. {
  132. width: 21px;
  133. height: 21px;
  134. }
  135. QRadioButton::indicator:unchecked
  136. {
  137. image: url(:/qss_icons/rc/radio_unchecked.png);
  138. }
  139. QRadioButton::indicator:unchecked:hover,
  140. QRadioButton::indicator:unchecked:focus,
  141. QRadioButton::indicator:unchecked:pressed
  142. {
  143. border: none;
  144. outline: none;
  145. image: url(:/qss_icons/rc/radio_unchecked_focus.png);
  146. }
  147. QRadioButton::indicator:checked
  148. {
  149. border: none;
  150. outline: none;
  151. image: url(:/qss_icons/rc/radio_checked.png);
  152. }
  153. QRadioButton::indicator:checked:hover,
  154. QRadioButton::indicator:checked:focus,
  155. QRadioButton::indicator:checked:pressed
  156. {
  157. border: none;
  158. outline: none;
  159. image: url(:/qss_icons/rc/radio_checked_focus.png);
  160. }
  161. QRadioButton::indicator:checked:disabled
  162. {
  163. outline: none;
  164. image: url(:/qss_icons/rc/radio_checked_disabled.png);
  165. }
  166. QRadioButton::indicator:unchecked:disabled
  167. {
  168. image: url(:/qss_icons/rc/radio_unchecked_disabled.png);
  169. }
  170. QMenuBar
  171. {
  172. background-color: #31363b;
  173. color: #eff0f1;
  174. }
  175. QMenuBar::item
  176. {
  177. background: transparent;
  178. }
  179. QMenuBar::item:selected
  180. {
  181. background: transparent;
  182. border: 1px solid #76797C;
  183. }
  184. QMenuBar::item:pressed
  185. {
  186. border: 1px solid #76797C;
  187. background-color: #3daee9;
  188. color: #eff0f1;
  189. margin-bottom:-1px;
  190. padding-bottom:1px;
  191. }
  192. QMenu
  193. {
  194. border: 1px solid #76797C;
  195. color: #eff0f1;
  196. margin: 2px;
  197. }
  198. QMenu::icon
  199. {
  200. margin: 5px;
  201. }
  202. QMenu::item
  203. {
  204. padding: 5px 30px 5px 30px;
  205. margin-left: 5px;
  206. border: 1px solid transparent; /* reserve space for selection border */
  207. }
  208. QMenu::item:selected
  209. {
  210. color: #eff0f1;
  211. }
  212. QMenu::separator {
  213. height: 2px;
  214. background: lightblue;
  215. margin-left: 10px;
  216. margin-right: 5px;
  217. }
  218. QMenu::indicator {
  219. width: 18px;
  220. height: 18px;
  221. }
  222. /* non-exclusive indicator = check box style indicator
  223. (see QActionGroup::setExclusive) */
  224. QMenu::indicator:non-exclusive:unchecked {
  225. image: url(:/qss_icons/rc/checkbox_unchecked.png);
  226. }
  227. QMenu::indicator:non-exclusive:unchecked:selected {
  228. image: url(:/qss_icons/rc/checkbox_unchecked_disabled.png);
  229. }
  230. QMenu::indicator:non-exclusive:checked {
  231. image: url(:/qss_icons/rc/checkbox_checked.png);
  232. }
  233. QMenu::indicator:non-exclusive:checked:selected {
  234. image: url(:/qss_icons/rc/checkbox_checked_disabled.png);
  235. }
  236. /* exclusive indicator = radio button style indicator (see QActionGroup::setExclusive) */
  237. QMenu::indicator:exclusive:unchecked {
  238. image: url(:/qss_icons/rc/radio_unchecked.png);
  239. }
  240. QMenu::indicator:exclusive:unchecked:selected {
  241. image: url(:/qss_icons/rc/radio_unchecked_disabled.png);
  242. }
  243. QMenu::indicator:exclusive:checked {
  244. image: url(:/qss_icons/rc/radio_checked.png);
  245. }
  246. QMenu::indicator:exclusive:checked:selected {
  247. image: url(:/qss_icons/rc/radio_checked_disabled.png);
  248. }
  249. QMenu::right-arrow {
  250. margin: 5px;
  251. image: url(:/qss_icons/rc/right_arrow.png)
  252. }
  253. QWidget:disabled
  254. {
  255. color: #454545;
  256. background-color: #31363b;
  257. }
  258. QAbstractItemView
  259. {
  260. alternate-background-color: #31363b;
  261. color: #eff0f1;
  262. border: 1px solid 3A3939;
  263. border-radius: 2px;
  264. }
  265. QWidget:focus, QMenuBar:focus
  266. {
  267. border: 1px solid #3daee9;
  268. }
  269. QTabWidget:focus, QCheckBox:focus, QRadioButton:focus, QSlider:focus
  270. {
  271. border: none;
  272. }
  273. QLineEdit
  274. {
  275. background-color: #232629;
  276. padding: 5px;
  277. border-style: solid;
  278. border: 1px solid #76797C;
  279. border-radius: 2px;
  280. color: #eff0f1;
  281. }
  282. QAbstractItemView QLineEdit
  283. {
  284. padding: 0;
  285. }
  286. QGroupBox {
  287. border:1px solid #76797C;
  288. border-radius: 2px;
  289. margin-top: 20px;
  290. }
  291. QGroupBox::title {
  292. subcontrol-origin: margin;
  293. subcontrol-position: top center;
  294. padding-left: 10px;
  295. padding-right: 10px;
  296. padding-top: 10px;
  297. }
  298. QAbstractScrollArea
  299. {
  300. border-radius: 2px;
  301. border: 1px solid #76797C;
  302. background-color: transparent;
  303. }
  304. QScrollBar:horizontal
  305. {
  306. height: 15px;
  307. margin: 3px 15px 3px 15px;
  308. border: 1px transparent #2A2929;
  309. border-radius: 4px;
  310. background-color: #2A2929;
  311. }
  312. QScrollBar::handle:horizontal
  313. {
  314. background-color: #605F5F;
  315. min-width: 5px;
  316. border-radius: 4px;
  317. }
  318. QScrollBar::add-line:horizontal
  319. {
  320. margin: 0px 3px 0px 3px;
  321. border-image: url(:/qss_icons/rc/right_arrow_disabled.png);
  322. width: 10px;
  323. height: 10px;
  324. subcontrol-position: right;
  325. subcontrol-origin: margin;
  326. }
  327. QScrollBar::sub-line:horizontal
  328. {
  329. margin: 0px 3px 0px 3px;
  330. border-image: url(:/qss_icons/rc/left_arrow_disabled.png);
  331. height: 10px;
  332. width: 10px;
  333. subcontrol-position: left;
  334. subcontrol-origin: margin;
  335. }
  336. QScrollBar::add-line:horizontal:hover,QScrollBar::add-line:horizontal:on
  337. {
  338. border-image: url(:/qss_icons/rc/right_arrow.png);
  339. height: 10px;
  340. width: 10px;
  341. subcontrol-position: right;
  342. subcontrol-origin: margin;
  343. }
  344. QScrollBar::sub-line:horizontal:hover, QScrollBar::sub-line:horizontal:on
  345. {
  346. border-image: url(:/qss_icons/rc/left_arrow.png);
  347. height: 10px;
  348. width: 10px;
  349. subcontrol-position: left;
  350. subcontrol-origin: margin;
  351. }
  352. QScrollBar::up-arrow:horizontal, QScrollBar::down-arrow:horizontal
  353. {
  354. background: none;
  355. }
  356. QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal
  357. {
  358. background: none;
  359. }
  360. QScrollBar:vertical
  361. {
  362. background-color: #2A2929;
  363. width: 15px;
  364. margin: 15px 3px 15px 3px;
  365. border: 1px transparent #2A2929;
  366. border-radius: 4px;
  367. }
  368. QScrollBar::handle:vertical
  369. {
  370. background-color: #605F5F;
  371. min-height: 5px;
  372. border-radius: 4px;
  373. }
  374. QScrollBar::sub-line:vertical
  375. {
  376. margin: 3px 0px 3px 0px;
  377. border-image: url(:/qss_icons/rc/up_arrow_disabled.png);
  378. height: 10px;
  379. width: 10px;
  380. subcontrol-position: top;
  381. subcontrol-origin: margin;
  382. }
  383. QScrollBar::add-line:vertical
  384. {
  385. margin: 3px 0px 3px 0px;
  386. border-image: url(:/qss_icons/rc/down_arrow_disabled.png);
  387. height: 10px;
  388. width: 10px;
  389. subcontrol-position: bottom;
  390. subcontrol-origin: margin;
  391. }
  392. QScrollBar::sub-line:vertical:hover,QScrollBar::sub-line:vertical:on
  393. {
  394. border-image: url(:/qss_icons/rc/up_arrow.png);
  395. height: 10px;
  396. width: 10px;
  397. subcontrol-position: top;
  398. subcontrol-origin: margin;
  399. }
  400. QScrollBar::add-line:vertical:hover, QScrollBar::add-line:vertical:on
  401. {
  402. border-image: url(:/qss_icons/rc/down_arrow.png);
  403. height: 10px;
  404. width: 10px;
  405. subcontrol-position: bottom;
  406. subcontrol-origin: margin;
  407. }
  408. QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical
  409. {
  410. background: none;
  411. }
  412. QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
  413. {
  414. background: none;
  415. }
  416. QTextEdit
  417. {
  418. background-color: #232629;
  419. color: #eff0f1;
  420. border: 1px solid #76797C;
  421. }
  422. QPlainTextEdit
  423. {
  424. background-color: #232629;;
  425. color: #eff0f1;
  426. border-radius: 2px;
  427. border: 1px solid #76797C;
  428. }
  429. QHeaderView::section
  430. {
  431. background-color: #76797C;
  432. color: #eff0f1;
  433. padding: 5px;
  434. border: 1px solid #76797C;
  435. }
  436. QSizeGrip {
  437. image: url(:/qss_icons/rc/sizegrip.png);
  438. width: 12px;
  439. height: 12px;
  440. }
  441. QMainWindow::separator
  442. {
  443. background-color: #31363b;
  444. color: white;
  445. padding-left: 4px;
  446. spacing: 2px;
  447. border: 1px dashed #76797C;
  448. }
  449. QMainWindow::separator:hover
  450. {
  451. background-color: #787876;
  452. color: white;
  453. padding-left: 4px;
  454. border: 1px solid #76797C;
  455. spacing: 2px;
  456. }
  457. QMenu::separator
  458. {
  459. height: 1px;
  460. background-color: #76797C;
  461. color: white;
  462. padding-left: 4px;
  463. margin-left: 10px;
  464. margin-right: 5px;
  465. }
  466. QFrame
  467. {
  468. border-radius: 2px;
  469. border: 1px solid #76797C;
  470. }
  471. QFrame[frameShape="0"]
  472. {
  473. border-radius: 2px;
  474. border: 1px transparent #76797C;
  475. }
  476. QStackedWidget
  477. {
  478. border: 1px transparent black;
  479. }
  480. QToolBar {
  481. border: 1px transparent #393838;
  482. background: 1px solid #31363b;
  483. font-weight: bold;
  484. }
  485. QToolBar::handle:horizontal {
  486. image: url(:/qss_icons/rc/Hmovetoolbar.png);
  487. }
  488. QToolBar::handle:vertical {
  489. image: url(:/qss_icons/rc/Vmovetoolbar.png);
  490. }
  491. QToolBar::separator:horizontal {
  492. image: url(:/qss_icons/rc/Hsepartoolbar.png);
  493. }
  494. QToolBar::separator:vertical {
  495. image: url(:/qss_icons/rc/Vsepartoolbar.png);
  496. }
  497. QToolButton#qt_toolbar_ext_button {
  498. background: #58595a
  499. }
  500. QPushButton
  501. {
  502. color: #eff0f1;
  503. background-color: #31363b;
  504. border-width: 1px;
  505. border-color: #76797C;
  506. border-style: solid;
  507. padding: 5px;
  508. border-radius: 2px;
  509. outline: none;
  510. }
  511. QPushButton:disabled
  512. {
  513. background-color: #31363b;
  514. border-width: 1px;
  515. border-color: #454545;
  516. border-style: solid;
  517. padding-top: 5px;
  518. padding-bottom: 5px;
  519. padding-left: 10px;
  520. padding-right: 10px;
  521. border-radius: 2px;
  522. color: #454545;
  523. }
  524. QPushButton:focus {
  525. background-color: #3daee9;
  526. color: white;
  527. }
  528. QPushButton:pressed
  529. {
  530. background-color: #3daee9;
  531. padding-top: -15px;
  532. padding-bottom: -17px;
  533. }
  534. QComboBox
  535. {
  536. selection-background-color: #3daee9;
  537. border-style: solid;
  538. border: 1px solid #76797C;
  539. border-radius: 2px;
  540. padding: 5px;
  541. min-width: 75px;
  542. }
  543. QPushButton:checked{
  544. background-color: #76797C;
  545. border-color: #6A6969;
  546. }
  547. QComboBox:hover,QPushButton:hover,QAbstractSpinBox:hover,QLineEdit:hover,QTextEdit:hover,QPlainTextEdit:hover,QAbstractView:hover,QTreeView:hover
  548. {
  549. border: 1px solid #3daee9;
  550. color: #eff0f1;
  551. }
  552. QComboBox:on
  553. {
  554. padding-top: 3px;
  555. padding-left: 4px;
  556. selection-background-color: #4a4a4a;
  557. }
  558. QComboBox QAbstractItemView
  559. {
  560. background-color: #232629;
  561. border-radius: 2px;
  562. border: 1px solid #76797C;
  563. selection-background-color: #18465d;
  564. }
  565. QComboBox::drop-down
  566. {
  567. subcontrol-origin: padding;
  568. subcontrol-position: top right;
  569. width: 15px;
  570. border-left-width: 0px;
  571. border-left-color: darkgray;
  572. border-left-style: solid;
  573. border-top-right-radius: 3px;
  574. border-bottom-right-radius: 3px;
  575. }
  576. QComboBox::down-arrow
  577. {
  578. image: url(:/qss_icons/rc/down_arrow_disabled.png);
  579. }
  580. QComboBox::down-arrow:on, QComboBox::down-arrow:hover,
  581. QComboBox::down-arrow:focus
  582. {
  583. image: url(:/qss_icons/rc/down_arrow.png);
  584. }
  585. QAbstractSpinBox {
  586. padding: 5px;
  587. border: 1px solid #76797C;
  588. background-color: #232629;
  589. color: #eff0f1;
  590. border-radius: 2px;
  591. min-width: 75px;
  592. }
  593. QAbstractSpinBox:up-button
  594. {
  595. background-color: transparent;
  596. subcontrol-origin: border;
  597. subcontrol-position: center right;
  598. }
  599. QAbstractSpinBox:down-button
  600. {
  601. background-color: transparent;
  602. subcontrol-origin: border;
  603. subcontrol-position: center left;
  604. }
  605. QAbstractSpinBox::up-arrow,QAbstractSpinBox::up-arrow:disabled,QAbstractSpinBox::up-arrow:off {
  606. image: url(:/qss_icons/rc/up_arrow_disabled.png);
  607. width: 10px;
  608. height: 10px;
  609. }
  610. QAbstractSpinBox::up-arrow:hover
  611. {
  612. image: url(:/qss_icons/rc/up_arrow.png);
  613. }
  614. QAbstractSpinBox::down-arrow,QAbstractSpinBox::down-arrow:disabled,QAbstractSpinBox::down-arrow:off
  615. {
  616. image: url(:/qss_icons/rc/down_arrow_disabled.png);
  617. width: 10px;
  618. height: 10px;
  619. }
  620. QAbstractSpinBox::down-arrow:hover
  621. {
  622. image: url(:/qss_icons/rc/down_arrow.png);
  623. }
  624. QLabel
  625. {
  626. border: 0px solid black;
  627. }
  628. QTabWidget{
  629. border: 0px transparent black;
  630. }
  631. QTabWidget::pane {
  632. border: 1px solid #76797C;
  633. padding: 5px;
  634. margin: 0px;
  635. }
  636. QTabWidget::tab-bar {
  637. left: 5px; /* move to the right by 5px */
  638. }
  639. QTabBar
  640. {
  641. qproperty-drawBase: 0;
  642. border-radius: 3px;
  643. }
  644. QTabBar:focus
  645. {
  646. border: 0px transparent black;
  647. }
  648. QTabBar::close-button {
  649. image: url(:/qss_icons/rc/close.png);
  650. background: transparent;
  651. }
  652. QTabBar::close-button:hover
  653. {
  654. image: url(:/qss_icons/rc/close-hover.png);
  655. background: transparent;
  656. }
  657. QTabBar::close-button:pressed {
  658. image: url(:/qss_icons/rc/close-pressed.png);
  659. background: transparent;
  660. }
  661. /* TOP TABS */
  662. QTabBar::tab:top {
  663. color: #eff0f1;
  664. border: 1px solid #76797C;
  665. border-bottom: 1px transparent black;
  666. background-color: #31363b;
  667. padding: 5px;
  668. min-width: 50px;
  669. border-top-left-radius: 2px;
  670. border-top-right-radius: 2px;
  671. }
  672. QTabBar::tab:top:!selected
  673. {
  674. color: #eff0f1;
  675. background-color: #54575B;
  676. border: 1px solid #76797C;
  677. border-bottom: 1px transparent black;
  678. border-top-left-radius: 2px;
  679. border-top-right-radius: 2px;
  680. }
  681. QTabBar::tab:top:!selected:hover {
  682. background-color: #3daee9;
  683. }
  684. /* BOTTOM TABS */
  685. QTabBar::tab:bottom {
  686. color: #eff0f1;
  687. border: 1px solid #76797C;
  688. border-top: 1px transparent black;
  689. background-color: #31363b;
  690. padding: 5px;
  691. border-bottom-left-radius: 2px;
  692. border-bottom-right-radius: 2px;
  693. min-width: 50px;
  694. }
  695. QTabBar::tab:bottom:!selected
  696. {
  697. color: #eff0f1;
  698. background-color: #54575B;
  699. border: 1px solid #76797C;
  700. border-top: 1px transparent black;
  701. border-bottom-left-radius: 2px;
  702. border-bottom-right-radius: 2px;
  703. }
  704. QTabBar::tab:bottom:!selected:hover {
  705. background-color: #3daee9;
  706. }
  707. /* LEFT TABS */
  708. QTabBar::tab:left {
  709. color: #eff0f1;
  710. border: 1px solid #76797C;
  711. border-left: 1px transparent black;
  712. background-color: #31363b;
  713. padding: 5px;
  714. border-top-right-radius: 2px;
  715. border-bottom-right-radius: 2px;
  716. min-height: 50px;
  717. }
  718. QTabBar::tab:left:!selected
  719. {
  720. color: #eff0f1;
  721. background-color: #54575B;
  722. border: 1px solid #76797C;
  723. border-left: 1px transparent black;
  724. border-top-right-radius: 2px;
  725. border-bottom-right-radius: 2px;
  726. }
  727. QTabBar::tab:left:!selected:hover {
  728. background-color: #3daee9;
  729. }
  730. /* RIGHT TABS */
  731. QTabBar::tab:right {
  732. color: #eff0f1;
  733. border: 1px solid #76797C;
  734. border-right: 1px transparent black;
  735. background-color: #31363b;
  736. padding: 5px;
  737. border-top-left-radius: 2px;
  738. border-bottom-left-radius: 2px;
  739. min-height: 50px;
  740. }
  741. QTabBar::tab:right:!selected
  742. {
  743. color: #eff0f1;
  744. background-color: #54575B;
  745. border: 1px solid #76797C;
  746. border-right: 1px transparent black;
  747. border-top-left-radius: 2px;
  748. border-bottom-left-radius: 2px;
  749. }
  750. QTabBar::tab:right:!selected:hover {
  751. background-color: #3daee9;
  752. }
  753. QTabBar QToolButton::right-arrow:enabled {
  754. image: url(:/qss_icons/rc/right_arrow.png);
  755. }
  756. QTabBar QToolButton::left-arrow:enabled {
  757. image: url(:/qss_icons/rc/left_arrow.png);
  758. }
  759. QTabBar QToolButton::right-arrow:disabled {
  760. image: url(:/qss_icons/rc/right_arrow_disabled.png);
  761. }
  762. QTabBar QToolButton::left-arrow:disabled {
  763. image: url(:/qss_icons/rc/left_arrow_disabled.png);
  764. }
  765. QDockWidget {
  766. background: #31363b;
  767. border: 1px solid #403F3F;
  768. titlebar-close-icon: url(:/qss_icons/rc/close.png);
  769. titlebar-normal-icon: url(:/qss_icons/rc/undock.png);
  770. }
  771. QDockWidget::close-button, QDockWidget::float-button {
  772. border: 1px solid transparent;
  773. border-radius: 2px;
  774. background: transparent;
  775. }
  776. QDockWidget::close-button:hover, QDockWidget::float-button:hover {
  777. background: rgba(255, 255, 255, 10);
  778. }
  779. QDockWidget::close-button:pressed, QDockWidget::float-button:pressed {
  780. padding: 1px -1px -1px 1px;
  781. background: rgba(255, 255, 255, 10);
  782. }
  783. QTreeView, QListView
  784. {
  785. border: 1px solid #76797C;
  786. background-color: #232629;
  787. }
  788. QTreeView:branch:selected, QTreeView:branch:hover
  789. {
  790. background: url(:/qss_icons/rc/transparent.png);
  791. }
  792. QTreeView::branch:has-siblings:!adjoins-item {
  793. border-image: url(:/qss_icons/rc/transparent.png);
  794. }
  795. QTreeView::branch:has-siblings:adjoins-item {
  796. border-image: url(:/qss_icons/rc/transparent.png);
  797. }
  798. QTreeView::branch:!has-children:!has-siblings:adjoins-item {
  799. border-image: url(:/qss_icons/rc/transparent.png);
  800. }
  801. QTreeView::branch:has-children:!has-siblings:closed,
  802. QTreeView::branch:closed:has-children:has-siblings {
  803. image: url(:/qss_icons/rc/branch_closed.png);
  804. }
  805. QTreeView::branch:open:has-children:!has-siblings,
  806. QTreeView::branch:open:has-children:has-siblings {
  807. image: url(:/qss_icons/rc/branch_open.png);
  808. }
  809. QTreeView::branch:has-children:!has-siblings:closed:hover,
  810. QTreeView::branch:closed:has-children:has-siblings:hover {
  811. image: url(:/qss_icons/rc/branch_closed-on.png);
  812. }
  813. QTreeView::branch:open:has-children:!has-siblings:hover,
  814. QTreeView::branch:open:has-children:has-siblings:hover {
  815. image: url(:/qss_icons/rc/branch_open-on.png);
  816. }
  817. QListView::item:!selected:hover, QTreeView::item:!selected:hover {
  818. background: #18465d;
  819. outline: 0;
  820. color: #eff0f1
  821. }
  822. QListView::item:selected:hover, QTreeView::item:selected:hover {
  823. background: #287399;
  824. color: #eff0f1;
  825. }
  826. QSlider::groove:horizontal {
  827. border: 1px solid #565a5e;
  828. height: 4px;
  829. background: #565a5e;
  830. margin: 0px;
  831. border-radius: 2px;
  832. }
  833. QSlider::handle:horizontal {
  834. background: #232629;
  835. border: 1px solid #565a5e;
  836. width: 16px;
  837. height: 16px;
  838. margin: -8px 0;
  839. border-radius: 9px;
  840. }
  841. QSlider::groove:vertical {
  842. border: 1px solid #565a5e;
  843. width: 4px;
  844. background: #565a5e;
  845. margin: 0px;
  846. border-radius: 3px;
  847. }
  848. QSlider::handle:vertical {
  849. background: #232629;
  850. border: 1px solid #565a5e;
  851. width: 16px;
  852. height: 16px;
  853. margin: 0 -8px;
  854. border-radius: 9px;
  855. }
  856. QToolButton {
  857. background-color: transparent;
  858. border: 1px transparent #76797C;
  859. border-radius: 2px;
  860. margin: 3px;
  861. padding: 5px;
  862. }
  863. QToolButton[popupMode="1"] { /* only for MenuButtonPopup */
  864. padding-right: 20px; /* make way for the popup button */
  865. border: 1px #76797C;
  866. border-radius: 5px;
  867. }
  868. QToolButton[popupMode="2"] { /* only for InstantPopup */
  869. padding-right: 10px; /* make way for the popup button */
  870. border: 1px #76797C;
  871. }
  872. QToolButton:hover, QToolButton::menu-button:hover {
  873. background-color: transparent;
  874. border: 1px solid #3daee9;
  875. padding: 5px;
  876. }
  877. QToolButton:checked, QToolButton:pressed,
  878. QToolButton::menu-button:pressed {
  879. background-color: #3daee9;
  880. border: 1px solid #3daee9;
  881. padding: 5px;
  882. }
  883. /* the subcontrol below is used only in the InstantPopup or DelayedPopup mode */
  884. QToolButton::menu-indicator {
  885. image: url(:/qss_icons/rc/down_arrow.png);
  886. top: -7px; left: -2px; /* shift it a bit */
  887. }
  888. /* the subcontrols below are used only in the MenuButtonPopup mode */
  889. QToolButton::menu-button {
  890. border: 1px transparent #76797C;
  891. border-top-right-radius: 6px;
  892. border-bottom-right-radius: 6px;
  893. /* 16px width + 4px for border = 20px allocated above */
  894. width: 16px;
  895. outline: none;
  896. }
  897. QToolButton::menu-arrow {
  898. image: url(:/qss_icons/rc/down_arrow.png);
  899. }
  900. QToolButton::menu-arrow:open {
  901. border: 1px solid #76797C;
  902. }
  903. QPushButton::menu-indicator {
  904. subcontrol-origin: padding;
  905. subcontrol-position: bottom right;
  906. left: 8px;
  907. }
  908. QTableView
  909. {
  910. border: 1px solid #76797C;
  911. gridline-color: #31363b;
  912. background-color: #232629;
  913. }
  914. QTableView, QHeaderView
  915. {
  916. border-radius: 0px;
  917. }
  918. QTableView::item:pressed, QListView::item:pressed, QTreeView::item:pressed {
  919. background: #18465d;
  920. color: #eff0f1;
  921. }
  922. QTableView::item:selected:active, QTreeView::item:selected:active, QListView::item:selected:active {
  923. background: #287399;
  924. color: #eff0f1;
  925. }
  926. QHeaderView
  927. {
  928. background-color: #31363b;
  929. border: 1px transparent;
  930. border-radius: 0px;
  931. margin: 0px;
  932. padding: 0px;
  933. }
  934. QHeaderView::section {
  935. background-color: #31363b;
  936. color: #eff0f1;
  937. padding: 5px;
  938. border: 1px solid #76797C;
  939. border-radius: 0px;
  940. text-align: center;
  941. }
  942. QHeaderView::section::vertical::first, QHeaderView::section::vertical::only-one
  943. {
  944. border-top: 1px solid #76797C;
  945. }
  946. QHeaderView::section::vertical
  947. {
  948. border-top: transparent;
  949. }
  950. QHeaderView::section::horizontal::first, QHeaderView::section::horizontal::only-one
  951. {
  952. border-left: 1px solid #76797C;
  953. }
  954. QHeaderView::section::horizontal
  955. {
  956. border-left: transparent;
  957. }
  958. QHeaderView::section:checked
  959. {
  960. color: white;
  961. background-color: #334e5e;
  962. }
  963. /* style the sort indicator */
  964. QHeaderView::down-arrow {
  965. image: url(:/qss_icons/rc/down_arrow.png);
  966. }
  967. QHeaderView::up-arrow {
  968. image: url(:/qss_icons/rc/up_arrow.png);
  969. }
  970. QTableCornerButton::section {
  971. background-color: #31363b;
  972. border: 1px transparent #76797C;
  973. border-radius: 0px;
  974. }
  975. QToolBox {
  976. padding: 5px;
  977. border: 1px transparent black;
  978. }
  979. QToolBox::tab {
  980. color: #eff0f1;
  981. background-color: #31363b;
  982. border: 1px solid #76797C;
  983. border-bottom: 1px transparent #31363b;
  984. border-top-left-radius: 5px;
  985. border-top-right-radius: 5px;
  986. }
  987. QToolBox::tab:selected { /* italicize selected tabs */
  988. font: italic;
  989. background-color: #31363b;
  990. border-color: #3daee9;
  991. }
  992. QStatusBar::item {
  993. border: 0px transparent dark;
  994. }
  995. QFrame[height="3"], QFrame[width="3"] {
  996. background-color: #76797C;
  997. }
  998. QSplitter::handle {
  999. border: 1px dashed #76797C;
  1000. }
  1001. QSplitter::handle:hover {
  1002. background-color: #787876;
  1003. border: 1px solid #76797C;
  1004. }
  1005. QSplitter::handle:horizontal {
  1006. width: 1px;
  1007. }
  1008. QSplitter::handle:vertical {
  1009. height: 1px;
  1010. }
  1011. QProgressBar {
  1012. border: 1px solid #76797C;
  1013. border-radius: 5px;
  1014. text-align: center;
  1015. }
  1016. QProgressBar::chunk {
  1017. background-color: #05B8CC;
  1018. }
  1019. QDateEdit
  1020. {
  1021. selection-background-color: #3daee9;
  1022. border-style: solid;
  1023. border: 1px solid #3375A3;
  1024. border-radius: 2px;
  1025. padding: 1px;
  1026. min-width: 75px;
  1027. }
  1028. QDateEdit:on
  1029. {
  1030. padding-top: 3px;
  1031. padding-left: 4px;
  1032. selection-background-color: #4a4a4a;
  1033. }
  1034. QDateEdit QAbstractItemView
  1035. {
  1036. background-color: #232629;
  1037. border-radius: 2px;
  1038. border: 1px solid #3375A3;
  1039. selection-background-color: #3daee9;
  1040. }
  1041. QDateEdit::drop-down
  1042. {
  1043. subcontrol-origin: padding;
  1044. subcontrol-position: top right;
  1045. width: 15px;
  1046. border-left-width: 0px;
  1047. border-left-color: darkgray;
  1048. border-left-style: solid;
  1049. border-top-right-radius: 3px;
  1050. border-bottom-right-radius: 3px;
  1051. }
  1052. QDateEdit::down-arrow
  1053. {
  1054. image: url(:/qss_icons/rc/down_arrow_disabled.png);
  1055. }
  1056. QDateEdit::down-arrow:on, QDateEdit::down-arrow:hover,
  1057. QDateEdit::down-arrow:focus
  1058. {
  1059. image: url(:/qss_icons/rc/down_arrow.png);
  1060. }