AddNormalItem_Light.qss 5.0 KB

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