addspecialitem.qss 6.6 KB

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