darkstyle.qss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. QToolTip{
  2. color:#ffffff;
  3. background-color:palette(base);
  4. border:1px solid palette(highlight);
  5. border-radius:4px;
  6. }
  7. QStatusBar{
  8. background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  9. color:palette(mid);
  10. }
  11. QMenuBar{
  12. background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  13. border-bottom:2px solid rgba(25,25,25,75);
  14. }
  15. QMenuBar::item{
  16. spacing:2px;
  17. padding:3px 4px;
  18. background:transparent;
  19. }
  20. QMenuBar::item:selected{
  21. background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(106,106,106,255),stop:1 rgba(106,106,106,75));
  22. border-left:1px solid rgba(106,106,106,127);
  23. border-right:1px solid rgba(106,106,106,127);
  24. }
  25. QMenuBar::item:pressed{
  26. background-color:palette(highlight);
  27. border-left:1px solid rgba(25,25,25,127);
  28. border-right:1px solid rgba(25,25,25,127);
  29. }
  30. QMenu{
  31. background-color:palette(window);
  32. border:1px solid palette(shadow);
  33. }
  34. QMenu::item{
  35. padding:3px 25px 3px 25px;
  36. border:1px solid transparent;
  37. }
  38. QMenu::item:disabled{
  39. color:palette(disabled);
  40. }
  41. QMenu::item:selected{
  42. border-color:rgba(147,191,236,127);
  43. background:palette(highlight);
  44. }
  45. QMenu::icon:checked{
  46. background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  47. border:1px solid palette(highlight);
  48. border-radius:2px;
  49. }
  50. QMenu::separator{
  51. height:1px;
  52. background:palette(alternate-base);
  53. margin:3px 5px;
  54. }
  55. QMenu::indicator{
  56. width:18px;
  57. height:18px;
  58. }
  59. QMenu::indicator:non-exclusive:checked{
  60. image:url(:/darkstyle/icon_checkbox_checked.png);
  61. padding-left:2px;
  62. }
  63. QMenu::indicator:non-exclusive:unchecked{
  64. image:url(:/darkstyle/icon_checkbox_unchecked.png);
  65. padding-left:2px;
  66. }
  67. QMenu::indicator:exclusive:checked{
  68. image:url(:/darkstyle/icon_radiobutton_checked.png);
  69. padding-left:2px;
  70. }
  71. QMenu::indicator:exclusive:unchecked{
  72. image:url(:/darkstyle/icon_radiobutton_unchecked.png);
  73. padding-left:2px;
  74. }
  75. QToolBar::top{
  76. background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  77. border-bottom:3px solid qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  78. }
  79. QToolBar::bottom{
  80. background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  81. border-top:3px solid qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  82. }
  83. QToolBar::left{
  84. background-color:qlineargradient(x1:0,y1:0,x2:1,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  85. border-right:3px solid qlineargradient(x1:0,y1:0,x2:1,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  86. }
  87. QToolBar::right{
  88. background-color:qlineargradient(x1:1,y1:0,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  89. border-left:3px solid qlineargradient(x1:1,y1:0,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  90. }
  91. QMainWindow::separator{
  92. width:6px;
  93. height:5px;
  94. padding:2px;
  95. }
  96. QSplitter::handle:horizontal{
  97. width:10px;
  98. }
  99. QSplitter::handle:vertical{
  100. height:10px;
  101. }
  102. QMainWindow::separator:hover,QSplitter::handle:hover{
  103. background:palette(highlight);
  104. }
  105. QDockWidget::title{
  106. padding:4px;
  107. background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  108. border:1px solid rgba(25,25,25,75);
  109. border-bottom:2px solid rgba(25,25,25,75);
  110. }
  111. QDockWidget{
  112. titlebar-close-icon:url(:/darkstyle/icon_close.png);
  113. titlebar-normal-icon:url(:/darkstyle/icon_restore.png);
  114. }
  115. QDockWidget::close-button,QDockWidget::float-button{
  116. subcontrol-position:top right;
  117. subcontrol-origin:margin;
  118. position:absolute;
  119. top:3px;
  120. bottom:0px;
  121. width:20px;
  122. height:20px;
  123. }
  124. QDockWidget::close-button{
  125. right:3px;
  126. }
  127. QDockWidget::float-button{
  128. right:25px;
  129. }
  130. QGroupBox{
  131. background-color:rgba(66,66,66,50%);
  132. margin-top:27px;
  133. border:1px solid rgba(25,25,25,127);
  134. border-radius:4px;
  135. }
  136. QGroupBox::title{
  137. subcontrol-origin:margin;
  138. subcontrol-position:left top;
  139. padding:4px 6px;
  140. margin-left:3px;
  141. background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  142. border:1px solid rgba(25,25,25,75);
  143. border-bottom:2px solid rgb(127,127,127);
  144. border-top-left-radius:4px;
  145. border-top-right-radius:4px;
  146. }
  147. QTabWidget::pane{
  148. background-color:rgba(66,66,66,50%);
  149. border-top:1px solid rgba(25,25,25,50%);
  150. }
  151. QTabWidget::tab-bar{
  152. left:3px;
  153. top:1px;
  154. }
  155. QTabBar{
  156. background-color:transparent;
  157. qproperty-drawBase:0;
  158. border-bottom:1px solid rgba(25,25,25,50%);
  159. }
  160. QTabBar::tab{
  161. padding:4px 6px;
  162. background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  163. border:1px solid rgba(25,25,25,75);
  164. border-top-left-radius:4px;
  165. border-top-right-radius:4px;
  166. }
  167. QTabBar::tab:selected,QTabBar::tab:hover{
  168. background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(53,53,53,127),stop:1 rgba(66,66,66,50%));
  169. border-bottom-color:rgba(66,66,66,75%);
  170. }
  171. QTabBar::tab:selected{
  172. border-bottom:2px solid palette(highlight);
  173. }
  174. QTabBar::tab::selected:disabled{
  175. border-bottom:2px solid rgb(127,127,127);
  176. }
  177. QTabBar::tab:!selected{
  178. margin-top:2px;
  179. }
  180. QTabBar::close-button {
  181. image:url(:/darkstyle/icon_close.png);
  182. border:1px solid transparent;
  183. border-radius:2px;
  184. }
  185. QTabBar::close-button:hover {
  186. background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(106,106,106,255),stop:1 rgba(106,106,106,75));
  187. border:1px solid palette(base);
  188. }
  189. QTabBar::close-button:pressed {
  190. background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  191. border:1px solid palette(base);
  192. }
  193. QCheckBox::indicator{
  194. width:18px;
  195. height:18px;
  196. }
  197. QCheckBox::indicator:checked,QTreeView::indicator:checked,QTableView::indicator:checked,QGroupBox::indicator:checked{
  198. image:url(:/darkstyle/icon_checkbox_checked.png);
  199. }
  200. QCheckBox::indicator:checked:pressed,QTreeView::indicator:checked:pressed,QTableView::indicator:checked:pressed,QGroupBox::indicator:checked:pressed{
  201. image:url(:/darkstyle/icon_checkbox_checked_pressed.png);
  202. }
  203. QCheckBox::indicator:checked:disabled,QTreeView::indicator:checked:disabled,QTableView::indicator:checked:disabled,QGroupBox::indicator:checked:disabled{
  204. image:url(:/darkstyle/icon_checkbox_checked_disabled.png);
  205. }
  206. QCheckBox::indicator:unchecked,QTreeView::indicator:unchecked,QTableView::indicator:unchecked,QGroupBox::indicator:unchecked{
  207. image:url(:/darkstyle/icon_checkbox_unchecked.png);
  208. }
  209. QCheckBox::indicator:unchecked:pressed,QTreeView::indicator:unchecked:pressed,QTableView::indicator:unchecked:pressed,QGroupBox::indicator:unchecked:pressed{
  210. image:url(:/darkstyle/icon_checkbox_unchecked_pressed.png);
  211. }
  212. QCheckBox::indicator:unchecked:disabled,QTreeView::indicator:unchecked:disabled,QTableView::indicator:unchecked:disabled,QGroupBox::indicator:unchecked:disabled{
  213. image:url(:/darkstyle/icon_checkbox_unchecked_disabled.png);
  214. }
  215. QCheckBox::indicator:indeterminate,QTreeView::indicator:indeterminate,QTableView::indicator:indeterminate,QGroupBox::indicator:indeterminate{
  216. image:url(:/darkstyle/icon_checkbox_indeterminate.png);
  217. }
  218. QCheckBox::indicator:indeterminate:pressed,QTreeView::indicator:indeterminate:pressed,QTableView::indicator:indeterminate:pressed,QGroupBox::indicator:indeterminate:pressed{
  219. image:url(:/darkstyle/icon_checkbox_indeterminate_pressed.png);
  220. }
  221. QCheckBox::indicator:indeterminate:disabled,QTreeView::indicator:indeterminate:disabled,QTableView::indicator:indeterminate:disabled,QGroupBox::indicator:indeterminate:disabled{
  222. image:url(:/darkstyle/icon_checkbox_indeterminate_disabled.png);
  223. }
  224. QRadioButton::indicator{
  225. width:18px;
  226. height:18px;
  227. }
  228. QRadioButton::indicator:checked{
  229. image:url(:/darkstyle/icon_radiobutton_checked.png);
  230. }
  231. QRadioButton::indicator:checked:pressed{
  232. image:url(:/darkstyle/icon_radiobutton_checked_pressed.png);
  233. }
  234. QRadioButton::indicator:checked:disabled{
  235. image:url(:/darkstyle/icon_radiobutton_checked_disabled.png);
  236. }
  237. QRadioButton::indicator:unchecked{
  238. image:url(:/darkstyle/icon_radiobutton_unchecked.png);
  239. }
  240. QRadioButton::indicator:unchecked:pressed{
  241. image:url(:/darkstyle/icon_radiobutton_unchecked_pressed.png);
  242. }
  243. QRadioButton::indicator:unchecked:disabled{
  244. image:url(:/darkstyle/icon_radiobutton_unchecked_disabled.png);
  245. }
  246. QTreeView, QTableView{
  247. alternate-background-color:palette(window);
  248. background:palette(base);
  249. }
  250. QTreeView QHeaderView::section, QTableView QHeaderView::section{
  251. background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
  252. border-style:none;
  253. border-bottom:1px solid palette(dark);
  254. padding-left:5px;
  255. padding-right:5px;
  256. }
  257. QTreeView::item:selected:disabled, QTableView::item:selected:disabled{
  258. background:rgb(80,80,80);
  259. }
  260. QTreeView::branch{
  261. background-color:palette(base);
  262. }
  263. QTreeView::branch:has-siblings:!adjoins-item{
  264. border-image:url(:/darkstyle/icon_vline.png) 0;
  265. }
  266. QTreeView::branch:has-siblings:adjoins-item{
  267. border-image:url(:/darkstyle/icon_branch_more.png) 0;
  268. }
  269. QTreeView::branch:!has-children:!has-siblings:adjoins-item{
  270. border-image:url(:/darkstyle/icon_branch_end.png) 0;
  271. }
  272. QTreeView::branch:has-children:!has-siblings:closed,
  273. QTreeView::branch:closed:has-children:has-siblings{
  274. border-image:none;
  275. image:url(:/darkstyle/icon_branch_closed.png);
  276. }
  277. QTreeView::branch:open:has-children:!has-siblings,
  278. QTreeView::branch:open:has-children:has-siblings{
  279. border-image:none;
  280. image:url(:/darkstyle/icon_branch_open.png);
  281. }
  282. QScrollBar:vertical{
  283. background:palette(base);
  284. border-top-right-radius:2px;
  285. border-bottom-right-radius:2px;
  286. width:16px;
  287. margin:0px;
  288. }
  289. QScrollBar::handle:vertical{
  290. background-color:palette(alternate-base);
  291. border-radius:2px;
  292. min-height:20px;
  293. margin:2px 4px 2px 4px;
  294. }
  295. QScrollBar::handle:vertical:hover{
  296. background-color:palette(highlight);
  297. }
  298. QScrollBar::add-line:vertical{
  299. background:none;
  300. height:0px;
  301. subcontrol-position:right;
  302. subcontrol-origin:margin;
  303. }
  304. QScrollBar::sub-line:vertical{
  305. background:none;
  306. height:0px;
  307. subcontrol-position:left;
  308. subcontrol-origin:margin;
  309. }
  310. QScrollBar:horizontal{
  311. background:palette(base);
  312. height:16px;
  313. margin:0px;
  314. }
  315. QScrollBar::handle:horizontal{
  316. background-color:palette(alternate-base);
  317. border-radius:2px;
  318. min-width:20px;
  319. margin:4px 2px 4px 2px;
  320. }
  321. QScrollBar::handle:horizontal:hover{
  322. background-color:palette(highlight);
  323. }
  324. QScrollBar::add-line:horizontal{
  325. background:none;
  326. width:0px;
  327. subcontrol-position:bottom;
  328. subcontrol-origin:margin;
  329. }
  330. QScrollBar::sub-line:horizontal{
  331. background:none;
  332. width:0px;
  333. subcontrol-position:top;
  334. subcontrol-origin:margin;
  335. }
  336. QSlider::handle:horizontal{
  337. border-radius:4px;
  338. border:1px solid rgba(25,25,25,255);
  339. background-color:palette(alternate-base);
  340. min-height:20px;
  341. margin:0 -4px;
  342. }
  343. QSlider::handle:horizontal:hover{
  344. background:palette(highlight);
  345. }
  346. QSlider::add-page:horizontal{
  347. background:palette(base);
  348. }
  349. QSlider::sub-page:horizontal{
  350. background:palette(highlight);
  351. }
  352. QSlider::sub-page:horizontal:disabled{
  353. background:rgb(80,80,80);
  354. }