compareitemlistwidget.qss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. QWidget
  2. {
  3. }
  4. /* ==========================================================
  5. * QPushButton
  6. * ========================================================== */
  7. QPushButton
  8. {
  9. font-weight: 500;
  10. font-size: 14px;
  11. text-align: center;
  12. }
  13. /* QPushButton#pBtn_Close
  14. {
  15. background: transparent;
  16. border-radius: 4px;
  17. qproperty-icon: url(:/icon/close.png);
  18. qproperty-iconSize: 32px 32px;
  19. }
  20. QPushButton#pBtn_Close[Hover = true]
  21. {
  22. background: transparent;
  23. border-radius: 4px;
  24. qproperty-icon: url(:/icon/close_hover.png);
  25. qproperty-iconSize: 32px 32px;
  26. border: 1px solid #4458FE;
  27. } */
  28. /********* 普通椭圆按钮三种状态效果 *********/
  29. QPushButton#pBtn_close
  30. {
  31. background: transparent;
  32. color: #3A3F63;
  33. border: 1px solid #E6E9F4;
  34. border-radius: 16px;
  35. }
  36. QPushButton#pBtn_close:hover
  37. {
  38. background: transparent;
  39. color: #4458FE;
  40. border: 1px solid #4458FE;
  41. border-radius: 16px;
  42. }
  43. /********* 带有底色椭圆按钮三种状态效果 *********/
  44. /* QPushButton#pBtn_OK
  45. {
  46. color:white;
  47. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF);
  48. border-radius: 16px;
  49. }
  50. QPushButton#pBtn_OK:hover
  51. {
  52. color:white;
  53. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF);
  54. border-radius: 16px;
  55. } */
  56. /********* 普通方框按钮三种状态效果 *********/
  57. QPushButton#pBtn_delete, #pBtn_modify, #pBtn_enableCPItem, #pBtn_disableCPItem
  58. {
  59. background: transparent;
  60. color: #3A3F63;
  61. border: 1px solid #E6E9F4;
  62. border-radius: 4px;
  63. }
  64. QPushButton#pBtn_delete:hover, #pBtn_modify:hover, #pBtn_enableCPItem:hover, #pBtn_disableCPItem:hover
  65. {
  66. background: transparent;
  67. color: #4458FE;
  68. border: 1px solid #4458FE;
  69. border-radius: 4px;
  70. }
  71. /********* 带有底色方框按钮三种状态效果 *********/
  72. QPushButton#pBtn_add
  73. {
  74. color:white;
  75. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF);
  76. border-radius: 4px;
  77. }
  78. QPushButton#pBtn_add:hover
  79. {
  80. color:white;
  81. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF);
  82. border-radius: 4px;
  83. }
  84. /* ==========================================================
  85. * QTableView
  86. * ========================================================== */
  87. /* QTableView设置 */
  88. QTableView
  89. {
  90. border: none;
  91. background-color: white;
  92. selection-background-color: black;
  93. font-weight: 400;
  94. font-size: 14px;
  95. color: #3A3F63;
  96. line-height: 22px;
  97. text-align: left;
  98. font-style: normal;
  99. text-transform: none;
  100. outline: none;
  101. }
  102. /* 标题头整个区域 */
  103. QHeaderView
  104. {
  105. background:transparent;
  106. border-bottom: 1px solid #E6E9F4;
  107. border-top: 1px solid #E6E9F4;
  108. border-left: none;
  109. border-right: none;
  110. }
  111. /*表头设置*/
  112. QHeaderView::section
  113. {
  114. background: #FFFFFF;
  115. color: #3A3F63;
  116. font-weight: 400;
  117. font-size: 14px;
  118. padding-left: 8px;
  119. border: none;
  120. }
  121. QTableView::item
  122. {
  123. font-weight: 400;
  124. font-size: 14px;
  125. /* color: #3A3F63; */
  126. background: transparent;
  127. border: none;
  128. padding-left: 8px;
  129. outline: none;
  130. }
  131. QTableView::item:selected
  132. {
  133. color: #FFFFFF;
  134. background: #bdbbf5;
  135. border-radius: 0px 0px 0px 0px;
  136. outline: none;
  137. }