addnormalitem.qss 5.6 KB

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