addnormalitem.qss 6.0 KB

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