addnormalitem.qss 6.3 KB

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