addspecialitem.qss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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: bold;
  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. /* 不能编辑的时候的样式,setEnable(false) */
  117. QComboBox:!enabled
  118. {
  119. background:rgba(0,0,0,0.04);
  120. border: 1px solid #E6E9F4;
  121. border-radius: 4px;
  122. font-size:14px;
  123. font-weight: 400;
  124. color:rgba(58,63,99,0.65);
  125. padding-left: 12px;
  126. }
  127. QComboBox:hover
  128. {
  129. border: 1px solid #438EFF;
  130. border-radius: 4px;
  131. background:transparent;
  132. }
  133. /* 下拉箭头所在的位置方框 */
  134. QComboBox::drop-down
  135. {
  136. width: 24px;
  137. border: none;
  138. }
  139. /* 下拉箭头图标 */
  140. QComboBox::down-arrow
  141. {
  142. image: url(:/ICON/ICON/DownArrow.png);
  143. height:16px;
  144. width:16px;
  145. }
  146. /* 下拉条样式,就是view,整个下拉窗体的样式 */
  147. QComboBox QAbstractItemView
  148. {
  149. background-color: #5C5E61;
  150. margin: 12px;
  151. outline:0px;
  152. font-size:14px;
  153. /* color: #3A3F63; */
  154. border-radius: 4px;
  155. }
  156. /* 使下面两句生效,需要加上如下语句 */
  157. /* m_comBoxDev->setView(new QListView()); */
  158. QComboBox QAbstractItemView::item
  159. {
  160. background-color: #5C5E61;
  161. border-radius:4px;
  162. color: #D2D2D2;
  163. padding-left: 12px;
  164. height: 32px;
  165. }
  166. QComboBox QAbstractItemView::item:hover
  167. {
  168. color: #FFFFFF;
  169. border-radius:4px;
  170. background-color: #438EFF;
  171. }
  172. QComboBox QAbstractItemView::item:selected
  173. {
  174. color: #FFFFFF;
  175. border-radius:4px;
  176. background-color: #438EFF;
  177. }
  178. /******** combobox 滚动条 *********/
  179. QComboBox QScrollBar::vertical{ /*主体部分*/
  180. width:8px;
  181. background:transparent;
  182. border:none;
  183. border-radius:5px;
  184. }
  185. QComboBox QScrollBar::handle::vertical{ /*滑块主体*/
  186. width: 8px;
  187. background: #E2E2E2;
  188. border-radius: 3px;
  189. min-width: 8px;
  190. }
  191. QComboBox QScrollBar::handle::vertical::hover{
  192. background:transparent;
  193. }
  194. QComboBox QScrollBar::add-line::vertical{/*上箭头*/
  195. border:none;
  196. }
  197. QComboBox QScrollBar::sub-line::vertical{/*下箭头*/
  198. border:none;
  199. }
  200. /* ==========================================================
  201. * 时间选择器
  202. * ========================================================== */
  203. QPushButton#pBtn_iconTime
  204. {
  205. border-image: url(:/ICON/ICON/Time.png);
  206. }
  207. TimeWidget
  208. {
  209. /* background: transparent; */
  210. background: #373639;
  211. border-radius: 4px;
  212. padding-left:12px;
  213. border: 1px solid #438EFF;
  214. }
  215. QPushButton#pBtn_selectTime
  216. {
  217. font-family: 思源黑体R;
  218. background: transparent;
  219. border: 1px solid rgba(255,255,255,0.15);
  220. border-radius: 4px;
  221. font-size: 14px;
  222. font-weight: 400;
  223. padding-left: 12px;
  224. text-align: left;
  225. }
  226. QPushButton#pBtn_selectTime:hover
  227. {
  228. font-family: 思源黑体R;
  229. background: transparent;
  230. border: 1px solid #438EFF;
  231. border-radius: 4px;
  232. font-size: 14px;
  233. font-weight: 400;
  234. padding-left: 12px;
  235. text-align: left;
  236. }
  237. /* 报警红框 */
  238. QPushButton#pBtn_selectTime[Warn=true]
  239. {
  240. font-family: 思源黑体R;
  241. background: transparent;
  242. border-radius: 4px;
  243. padding-left:12px;
  244. border: 1px solid #D21F21;
  245. }
  246. QPushButton#btn_tip
  247. {
  248. border-image: url(:/ICON/ICON/Time.png);
  249. }
  250. /* ==========================================================
  251. * 日期选择器
  252. * ========================================================== */
  253. CalendarDTEdit
  254. {
  255. background: transparent;
  256. border-radius: 4px;
  257. padding-left:12px;
  258. border: 1px solid rgba(255,255,255,0.15);
  259. }
  260. CalendarDTEdit:hover
  261. {
  262. background: transparent;
  263. border-radius: 4px;
  264. padding-left:12px;
  265. border: 1px solid #438EFF;
  266. }
  267. CalendarDTEdit[Warn=true]
  268. {
  269. background: transparent;
  270. border-radius: 4px;
  271. padding-left:12px;
  272. border: 1px solid #D21F21;
  273. }
  274. CalendarDTEdit:!enabled/* 或者disable */
  275. {
  276. background: rgba(0,0,0,0.04);
  277. border: 1px solid #E6E9F4;
  278. }
  279. CalendarDTEdit::drop-down
  280. {
  281. padding-right:8px;
  282. width: 16px;
  283. image: url(:/ICON/ICON/date_light.png);
  284. }