QSS界面美化7

  1. /* === Shared === */  
  2. QStackedWidget, QLabel, QPushButton, QRadioButton, QCheckBox,   
  3. QGroupBox, QStatusBar, QToolButton, QComboBox, QDialog {  
  4.     background-color#222222;  
  5.     color#BBBBBB;  
  6.     font-family"Segoe UI";  
  7. }  
  8.   
  9. /* === QWidget === */  
  10. QWidget:window {  
  11.     background#222222;  
  12.     color#BBBBBB;  
  13.     font-family"Segoe UI";  
  14. }  
  15.   
  16. /* === QToolTip === */  
  17. QToolTip {  
  18.     background-color#000000;  
  19.     border2px solid #333333;  
  20.     color: yellow;  
  21. }  
  22.   
  23. /* === QPushButton === */  
  24. QPushButton {  
  25.     border1px solid #333333;  
  26.     padding4px;  
  27.     min-width65px;  
  28.     min-height12px;  
  29. }  
  30.   
  31. QPushButton:hover {  
  32.     background-color#333333;  
  33.     border-color#444444;  
  34. }  
  35.   
  36. QPushButton:pressed {  
  37.     background-color#111111;  
  38.     border-color#333333;  
  39.     color: yellow;  
  40. }  
  41.   
  42. QPushButton:disabled {  
  43.     color#333333;  
  44. }  
  45.   
  46. /* === Checkable items === */  
  47. QCheckBox::indicator, QRadioButton::indicator, QTreeView::indicator {  
  48.     width16px;  
  49.     height16px;  
  50.     background-color#111111;  
  51.     border1px solid #333333;  
  52. }  
  53.   
  54. QRadioButton::indicator {  
  55.     border-radius: 8px;  
  56. }  
  57.   
  58. QCheckBox::indicator::checked, QRadioButton::indicator::checked, QTreeView::indicator::checked {  
  59.     background-color: qradialgradient(cx:0.5, cy:0.5, fx:0.25, fy:0.15, radius:0.3, stop:0 #BBBBBB, stop:1 #111111);  
  60. }  
  61.   
  62. QCheckBox::indicator:disabled, QRadioButton::indicator:disabled, QTreeView::indicator:disabled {  
  63.     background-color#444444;  
  64. }  
  65.   
  66. QCheckBox::indicator::checked:disabled, QRadioButton::indicator::checked:disabled, QTreeView::indicator::checked:disabled {  
  67.     background-color: qradialgradient(cx:0.5, cy:0.5, fx:0.25, fy:0.15, radius:0.3, stop:0 #BBBBBB, stop:1 #444444);  
  68. }  
  69.   
  70. /* === QComboBox === */  
  71. QComboBox {  
  72.     background-colorblack;  
  73.     border1px solid #333333;  
  74.     colorwhite;  
  75.     padding:1px 2em 1px 3px;  
  76. }  
  77.   
  78. QComboBox::drop-down {  
  79.     subcontrol-origin: padding;  
  80.     subcontrol-positiontop right;  
  81.     border-left1px solid #333333;  
  82. }  
  83.   
  84. QComboBox::down-arrow {  
  85.     border2px solid #333333;  
  86.     width6px;  
  87.     height6px;  
  88.     background#5f5f5f;  
  89. }  
  90.   
  91. /* === QGroupBox === */  
  92. QGroupBox {  
  93.     border2px solid #333333;  
  94.     margin-top2ex;  
  95. }  
  96.   
  97. QGroupBox::title {  
  98.     color: yellow;  
  99.     subcontrol-origin: margin;  
  100.     subcontrol-positiontop left;  
  101.     margin-left5px;  
  102. }  
  103.   
  104. /* === QTabWidget === */  
  105. QTabWidget::pane {  
  106.     background#222222;  
  107.     border2px solid #333333;  
  108. }  
  109.   
  110. /* === QTabBar === */  
  111. QTabBar::tab {  
  112.     backgroundtransparent;  
  113.     border1px solid #333333;  
  114.     border-bottomnone;  
  115.     color#BBBBBB;  
  116.     padding-left5px;  
  117.     padding-right10px;  
  118.     padding-top3px;  
  119.     padding-bottom3px;  
  120. }  
  121.   
  122. QTabBar::tab:hover {  
  123.     background-color#333333;  
  124.     border1px solid #444444;  
  125.     border-bottomnone;  
  126. }  
  127.   
  128. QTabBar::tab:selected {  
  129.     background-color#111111;  
  130.     border1px solid #333333;  
  131.     border-top1px solid yellow;  
  132.     border-bottomnone;  
  133.     color: yellow  
  134. }  
  135.   
  136. /* === QToolBar === */  
  137. QToolBar {  
  138.     background-color#222222;  
  139.     bordernone;  
  140.     padding1px;  
  141. }  
  142.   
  143. QToolBar:handle {  
  144.     background#222222;  
  145.     border-left1px dotted yellow;  
  146.     color#BBBBBB;  
  147. }  
  148.   
  149. QToolBar::separator {  
  150.     width6px;  
  151.     background-color#222222;  
  152. }  
  153.   
  154. /* === QToolButton === */  
  155. QToolButton {  
  156.     border1px solid #333333;  
  157.     margin1px;  
  158. }  
  159.   
  160. QToolButton:hover {  
  161.     background-color#333333;  
  162.     border1px solid #444444;  
  163. }  
  164.   
  165. QToolButton[popupMode="1"] { /* only for MenuButtonPopup */  
  166.     padding-right20px/* make way for the popup button */  
  167. }  
  168.   
  169. QToolButton::menu-button {  
  170.     border-left1px solid #333333;  
  171.     backgroundtransparent;  
  172.     width16px;  
  173. }  
  174.   
  175. QToolButton::menu-button:hover {  
  176.     border-left1px solid #444444;  
  177.     backgroundtransparent;  
  178.     width16px;  
  179. }  
  180.   
  181. QToolButton:checked, QToolButton:pressed {  
  182.     background-color#111111;  
  183.     color: yellow;  
  184. }  
  185.   
  186. /* === QMenu === */  
  187. QMenu {  
  188.     background-colorblack;  
  189.     border1px solid gray;  
  190.     colorwhite;  
  191.     padding1px;  
  192. }  
  193.   
  194. QMenu::item {  
  195.     padding2px 25px 2px 20px;  
  196.     border1px solid transparent;  
  197. }  
  198.   
  199. QMenu::item:disabled {  
  200.     color#666666;  
  201. }  
  202.   
  203. QMenu::item:selected {  
  204.     border-colorgray;  
  205.     background#222222;  
  206. }  
  207.   
  208. QMenu::icon:checked {  
  209.   
  210. }  
  211.   
  212. QMenu::separator {  
  213.     height1px;  
  214.     background#222222;  
  215.     margin-left10px;  
  216.     margin-right10px;  
  217.     margin-top1px;  
  218.     margin-bottom1px;  
  219. }  
  220.   
  221. QMenu::indicator {  
  222.     width13px;  
  223.     height13px;  
  224. }  
  225.   
  226. /* === QMenuBar === */  
  227. QMenuBar {  
  228.     background-colorblack;  
  229.     colorwhite;  
  230. }  
  231.   
  232. QMenuBar::item {  
  233.     backgroundtransparent;  
  234. }  
  235.   
  236. QMenuBar::item:disabled {  
  237.     colorgray;  
  238. }  
  239.   
  240. QMenuBar::item:selected {  
  241.     background#222222;  
  242. }  
  243.   
  244. QMenuBar::item:pressed {  
  245.     background#444444;  
  246. }  
  247.    
  248. /* === QScrollBar:vertical === */  
  249. QScrollBar:vertical {  
  250.     background#111111;  
  251.     width16px;  
  252.     margin16px 0 16px 0;  
  253. }  
  254.   
  255. QScrollBar::handle:vertical {  
  256.     background#555555;  
  257.     min-height16px;  
  258. }  
  259.   
  260. QScrollBar::add-line:vertical {  
  261.     background#444444;  
  262.     height16px;  
  263.     subcontrol-positionbottom;  
  264.     subcontrol-origin: margin;  
  265. }  
  266.   
  267. QScrollBar::sub-line:vertical {  
  268.     background#444444;  
  269.     height16px;  
  270.     subcontrol-positiontop;  
  271.     subcontrol-origin: margin;  
  272. }  
  273.   
  274. QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {  
  275.     backgroundnone;  
  276. }  
  277.   
  278. QScrollBar:up-arrow:vertical, QScrollBar:down-arrow:vertical {  
  279.     border2px solid #333333;  
  280.     width6px;  
  281.     height6px;  
  282.     background#5f5f5f;  
  283. }  
  284.   
  285. /* === QScrollBar:horizontal === */  
  286. QScrollBar:horizontal {  
  287.     background#111111;  
  288.     height16px;  
  289.     margin0 16px 0 16px;  
  290. }  
  291.   
  292. QScrollBar::handle:horizontal {  
  293.     background#555555;  
  294.     min-width16px;  
  295. }  
  296.   
  297. QScrollBar::add-line:horizontal {  
  298.     background#444444;  
  299.     width16px;  
  300.     subcontrol-positionright;  
  301.     subcontrol-origin: margin;  
  302. }  
  303.   
  304. QScrollBar::sub-line:horizontal {  
  305.     background#444444;  
  306.     width16px;  
  307.     subcontrol-positionleft;  
  308.     subcontrol-origin: margin;  
  309. }  
  310.   
  311. QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {  
  312.     backgroundnone;  
  313. }  
  314.   
  315. QScrollBar:left-arrow:horizontal, QScrollBar:right-arrow:horizontal {  
  316.     border2px solid #333333;  
  317.     width6px;  
  318.     height6px;  
  319.     background#5f5f5f;  
  320. }  
  321.   
  322. /* =================== */  
  323. QLineEdit, QListView, QTreeView, QTableView, QAbstractSpinBox {  
  324.     background-colorblack;  
  325.     color#BBBBBB;  
  326.     border1px solid #333333;  
  327. }  
  328.   
  329. QAbstractScrollArea, QLineEdit, QTextEdit, QAbstractSpinBox, QComboBox {  
  330.     border-color#333333;  
  331.     border1px solid #333333;  
  332.   
  333. }  
  334.   
  335. /* === QHeaderView === */  
  336. QHeaderView::section {  
  337.     background#222222;  
  338.     border0;  
  339.     color#BBBBBB;  
  340.     padding3px 0 3px 4px;  
  341. }  
  342.   
  343. /* === QListView === */  
  344. QListView::item:hover {  
  345.     background#333333;  
  346. }  
  347.   
  348. QListView::item:selected {  
  349.     background#111111;  
  350.     color: yellow;  
  351. }  
  352.   
  353. /* === QTableView === */  
  354. QTableView::item:hover {  
  355.     background#333333;  
  356. }  
  357.   
  358. QTableView::item:hover {  
  359.     background#111111;  
  360.     color: yellow;  
  361. }  
  362.   
  363. /* === QTreeView === */  
  364. QTreeView::item {  
  365.     backgroundblack;  
  366. }  
  367.   
  368. QTreeView::item:hover {  
  369.     background#333333;  
  370. }  
  371.   
  372. QTreeView::item:selected {  
  373.     background#111111;  
  374.     color: yellow;  
  375. }  
  376.   
  377. QTreeView::branch {  
  378.   
  379. }  
  380.   
  381. QTreeView::branch:has-siblings:adjoins-item {  
  382.   
  383. }  
  384.   
  385. QTreeView::branch:has-siblings:!adjoins-item {  
  386.   
  387. }  
  388.   
  389. QTreeView::branch:closed:has-children:has-siblings {  
  390.   
  391. }  
  392.   
  393. QTreeView::branch:has-children:!has-siblings:closed {  
  394.   
  395. }  
  396.   
  397. QTreeView::branch:!has-children:!has-siblings:adjoins-item {  
  398.   
  399. }  
  400.   
  401. QTreeView::branch:open:has-children:has-siblings {  
  402.   
  403. }  
  404.   
  405. QTreeView::branch:open:has-children:!has-siblings {  
  406.   
  407. }  
  408.   
  409. /* === Customizations === */  
  410. QFrame#infoLabel {  
  411.     border1px inset #333333;  
  412. }  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值