AddSpecialItem_Light.qss 5.3 KB

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