checkperiodwidget.qss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. QWidget#widget_detectPlan,#widget_noDetectPlan
  2. {
  3. border-bottom: 1px solid #E9E9E9;
  4. }
  5. /* ==========================================================
  6. * QLabel
  7. * ========================================================== */
  8. QLabel
  9. {
  10. font-weight: 400;
  11. font-size: 14px;
  12. color: #3A3F63;
  13. }
  14. QLabel#label_tipIcon1 ,#label_tipIcon2
  15. {
  16. image: url(:/icon/tip.png);
  17. }
  18. QLabel#label_tip1, #label_tip2
  19. {
  20. color: rgba(58,63,99,0.8);
  21. }
  22. QLabel#label_detectPlan, #label_noDetectPlan
  23. {
  24. font-weight: 500;
  25. font-size: 16px;
  26. }
  27. /* ==========================================================
  28. * QPushButton
  29. * ========================================================== */
  30. QPushButton
  31. {
  32. font-weight: 500;
  33. font-size: 14px;
  34. text-align: center;
  35. }
  36. /* QPushButton#pBtn_close
  37. {
  38. background: transparent;
  39. border-radius: 4px;
  40. qproperty-icon: url(:/ICON/ICON/Close_Light.png);
  41. qproperty-iconSize: 20px 20px;
  42. }
  43. QPushButton#pBtn_close[Hover = true]
  44. {
  45. background: transparent;
  46. border-radius: 4px;
  47. qproperty-icon: url(:/ICON/ICON/Close_pass.png);
  48. qproperty-iconSize: 20px 20px;
  49. border: 1px solid #4458FE;
  50. } */
  51. /********* 普通椭圆按钮三种状态效果 *********/
  52. /* QPushButton#pBtn_cancel, #pBtn_saveTotemplate
  53. {
  54. background: transparent;
  55. color: #3A3F63;
  56. border: 1px solid #E6E9F4;
  57. border-radius: 16px;
  58. }
  59. QPushButton#pBtn_cancel:hover, #pBtn_saveTotemplate:hover
  60. {
  61. background: transparent;
  62. color: #4458FE;
  63. border: 1px solid #4458FE;
  64. border-radius: 16px;
  65. } */
  66. /********* 带有底色椭圆按钮三种状态效果 *********/
  67. /* QPushButton#pBtn_ok
  68. {
  69. color:white;
  70. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF);
  71. border-radius: 16px;
  72. }
  73. QPushButton#pBtn_ok:hover
  74. {
  75. color:white;
  76. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF);
  77. border-radius: 16px;
  78. } */
  79. /********* 普通方框按钮三种状态效果 *********/
  80. QPushButton#pBtn_restore
  81. {
  82. background: transparent;
  83. color: #3A3F63;
  84. border: 1px solid #E6E9F4;
  85. border-radius: 4px;
  86. }
  87. QPushButton#pBtn_restore:hover
  88. {
  89. background: transparent;
  90. color: #4458FE;
  91. border: 1px solid #4458FE;
  92. border-radius: 4px;
  93. }
  94. /********* 带有底色方框按钮三种状态效果 *********/
  95. QPushButton#pBtn_addDetectPlan, #pBtn_addNoDetectPlan
  96. {
  97. color:white;
  98. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF);
  99. border-radius: 4px;
  100. }
  101. QPushButton#pBtn_addDetectPlan:hover, #pBtn_addNoDetectPlan:hover
  102. {
  103. color:white;
  104. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF);
  105. border-radius: 4px;
  106. }
  107. /* ==========================================================
  108. * QCheckBox
  109. * ========================================================== */
  110. QCheckBox
  111. {
  112. font-weight: 400;
  113. font-size: 14px;
  114. color: #3A3F63;
  115. }
  116. QCheckBox::indicator
  117. {
  118. width: 16px;
  119. height: 16px;
  120. }
  121. QCheckBox::indicator:unchecked
  122. {
  123. image: url(:/icon/unchecked.png);
  124. }
  125. QCheckBox::indicator:checked
  126. {
  127. image: url(:/icon/checked.png);
  128. }
  129. /* ==========================================================
  130. * QComboBox(这个是在用的)
  131. * ========================================================== */
  132. QComboBox:enabled
  133. {
  134. background-color:#FFFFFF;
  135. border: 1px solid #E6E9F4;
  136. border-radius: 4px;
  137. font-size:14px;
  138. font-weight: 400;
  139. color:#3A3F63;
  140. padding-left: 12px;
  141. }
  142. /* 不能编辑的时候的样式,setEnable(false) */
  143. QComboBox:!enabled
  144. {
  145. background:rgba(0,0,0,0.04);
  146. border: 1px solid #E6E9F4;
  147. border-radius: 4px;
  148. font-size:14px;
  149. font-weight: 400;
  150. color:rgba(58,63,99,0.65);
  151. padding-left: 12px;
  152. }
  153. QComboBox:hover
  154. {
  155. border: 1px solid #4458FE;
  156. border-radius: 4px;
  157. background:transparent;
  158. }
  159. /* 下拉箭头所在的位置方框 */
  160. QComboBox::drop-down
  161. {
  162. width: 24px;
  163. border: none;
  164. }
  165. /* 下拉箭头图标 */
  166. QComboBox::down-arrow
  167. {
  168. image: url(:/icon/down_arrow.png);
  169. height:16px;
  170. width:16px;
  171. }
  172. /* 下拉条样式,就是view,整个下拉窗体的样式 */
  173. QComboBox QAbstractItemView
  174. {
  175. background-color: #FFFFFF;
  176. margin: 12px;
  177. outline:0px;
  178. font-size:14px;
  179. color: #3A3F63;
  180. border-radius: 4px;
  181. }
  182. /* 使下面两句生效,需要加上如下语句 */
  183. /* m_comBoxDev->setView(new QListView()); */
  184. QComboBox QAbstractItemView::item
  185. {
  186. background-color: #FFFFFF;
  187. border-radius:4px;
  188. color: #3A3F63;
  189. padding-left: 12px;
  190. height: 32px;
  191. }
  192. QComboBox QAbstractItemView::item:hover
  193. {
  194. border-radius:4px;
  195. background-color: #EEF2FF;
  196. }
  197. /******** combobox 滚动条 *********/
  198. /*主体部分*/
  199. QComboBox QScrollBar::vertical
  200. {
  201. width:8px;
  202. background:transparent;
  203. border:none;
  204. border-radius:5px;
  205. }
  206. /*滑块主体*/
  207. QComboBox QScrollBar::handle::vertical
  208. {
  209. width: 8px;
  210. background: #E2E2E2;
  211. border-radius: 3px;
  212. min-width: 8px;
  213. }
  214. QComboBox QScrollBar::handle::vertical::hover
  215. {
  216. background:transparent;
  217. }
  218. /*上箭头*/
  219. QComboBox QScrollBar::add-line::vertical
  220. {
  221. border:none;
  222. }
  223. /*下箭头*/
  224. QComboBox QScrollBar::sub-line::vertical
  225. {
  226. border:none;
  227. }