importtemplate.qss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. QWidget
  2. {
  3. border-radius: 8px;
  4. /* font-family: 思源黑体R; */
  5. /* font-weight: 400; */
  6. font-size: 14px;
  7. color: #3A3F63;
  8. line-height: 21px;
  9. text-align: left;
  10. font-style: normal;
  11. }
  12. QWidget#widget
  13. {
  14. background-color: #FFFFFF;
  15. }
  16. QWidget#widget_Top
  17. {
  18. background: #FFFFFF;
  19. border-top-left-radius: 10px;
  20. border-top-right-radius: 10px;
  21. border-bottom-left-radius: 0px;
  22. border-bottom-right-radius: 0px;
  23. border-bottom: 1px solid #E6E9F4;
  24. }
  25. QLabel#label_title
  26. {
  27. /* font-weight: normal; */
  28. font-size: 18px;
  29. color: #3A3F63;
  30. line-height: 27px;
  31. text-align: left;
  32. font-style: normal;
  33. text-transform: uppercase;
  34. }
  35. QLabel#label_NC2,QLabel#label_NC3,QLabel#label_NC4
  36. {
  37. /* font-weight: 400; */
  38. font-size: 14px;
  39. color: #5A607F;
  40. line-height: 21px;
  41. text-align: left;
  42. font-style: normal;
  43. }
  44. QLabel#label_line2, #label_line3
  45. {
  46. background: #E6E9F4;
  47. }
  48. QLabel#label_warning
  49. {
  50. color:red;
  51. }
  52. QPushButton#pBtn_close
  53. {
  54. /* border-image: url(:/ICON/ICON/Dialog_close.png); */
  55. background: transparent;
  56. border-radius: 4px;
  57. qproperty-icon: url(:/ICON/ICON/Close_Light.png);
  58. qproperty-iconSize: 20px 20px;
  59. text-align: center;
  60. border: 0px solid #4458FE;
  61. }
  62. QPushButton#pBtn_close[Hover = true]
  63. {
  64. /* border-image: url(:/ICON/ICON/Dialog_close2.png); */
  65. background: transparent;
  66. border-radius: 4px;
  67. qproperty-icon: url(:/ICON/ICON/Close_pass.png);
  68. qproperty-iconSize: 20px 20px;
  69. text-align: center;
  70. border: 1px solid #4458FE;
  71. }
  72. /********* 普通椭圆按钮三种状态效果 *********/
  73. QPushButton#pBtn_cancel
  74. {
  75. border-radius: 16px;
  76. text-align: center;
  77. background: #FFFFFF;
  78. border: 1px solid #E6E9F4;
  79. color: #3A3F63;
  80. }
  81. QPushButton#pBtn_cancel:hover
  82. {
  83. text-align: center;
  84. background: #FFFFFF;
  85. border-radius: 16px;
  86. border: 1px solid #4458FE;
  87. color: #4458FE;
  88. }
  89. /********* 带有底色按钮三种状态效果 *********/
  90. QPushButton#pBtn_ok
  91. {
  92. border-radius: 16px;
  93. text-align: center;
  94. color:white;
  95. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF);
  96. }
  97. QPushButton#pBtn_ok:hover
  98. {
  99. border-radius: 16px;
  100. text-align: center;
  101. color:white;
  102. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF);
  103. }
  104. /* ==========================================================
  105. * QTableWidget
  106. * ========================================================== */
  107. QTableWidget
  108. {
  109. background: transparent;
  110. padding-left: 16px;
  111. border: none;
  112. text-align: left;
  113. }
  114. /* 设置标题栏,如果不生效,可能是在UI里面设置了样式表,导致冲突了 */
  115. QTableWidget QHeaderView
  116. {
  117. background: transparent;
  118. }
  119. QTableWidget QHeaderView::section
  120. {
  121. background: transparent;
  122. padding-left: 16px;
  123. font-weight: 500;
  124. font-size: 14px;
  125. border: 0px solid #E6E9F4;
  126. border-top: 1px solid #E6E9F4;
  127. border-bottom: 1px solid #E6E9F4;
  128. }
  129. QTableWidget::item
  130. {
  131. padding-left: 16px;
  132. padding-right: 0px;
  133. padding-top: 0px;
  134. padding-bottom: 0px;
  135. margin: 0px;
  136. text-align: left;
  137. border: 0px solid #E6E9F4;
  138. }
  139. QTableWidget::item:selected
  140. {
  141. color: #FFFFFF;
  142. background: #4458FE;
  143. }
  144. /* ==========================================================
  145. * QCheckBox
  146. * ========================================================== */
  147. QCheckBox
  148. {
  149. background: transparent;
  150. font-weight: 400;
  151. font-size: 14px;
  152. text-align: left;
  153. font-style: normal;
  154. text-transform: none;
  155. /* padding-left: 16px; */
  156. }
  157. QCheckBox::indicator
  158. {
  159. width: 20px; /* 勾选框的宽度 */
  160. height: 20px; /* 勾选框的高度 */
  161. border: none; /* 勾选框的边框颜色和宽度 */
  162. background: transparent; /* 勾选框的背景颜色 */
  163. border-radius: 2px; /* 可选:设置圆角 */
  164. }
  165. QCheckBox::indicator:unchecked
  166. {
  167. background: transparent; /* 未选中状态的背景颜色 */
  168. border-image: url(:/ICON/ICON/CheckBox_UnChecked.png); /* 未选中状态的图标 */
  169. }
  170. /* 半选中 */
  171. QCheckBox::indicator:indeterminate
  172. {
  173. background: transparent; /* 未选中状态的背景颜色 */
  174. border-image: url(:/ICON/ICON/CheckBox_PartiallyChecked.png); /* 未选中状态的图标 */
  175. }
  176. QCheckBox::indicator:checked
  177. {
  178. background: transparent; /* 选中状态的背景颜色 */
  179. border: 0px solid #4458FE; /* 选中状态的边框颜色 */
  180. border-image: url(:/ICON/ICON/CheckBox_Checked.png); /* 选中状态的图标 */
  181. }