AddSpecialItem.qss 5.0 KB

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