addspecialitem.qss 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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. 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. color: #EBEBEB;
  60. border: 1px solid rgba(255,255,255,0.25);
  61. border-radius: 16px;
  62. background: transparent;
  63. }
  64. QPushButton#pBtn_cancel:hover
  65. {
  66. color: #EBEBEB;
  67. border: 1px solid rgba(255,255,255,0.25);
  68. border-radius: 16px;
  69. background: rgba(0,0,0,0.15);
  70. }
  71. /********* 带有底色按钮三种状态效果 *********/
  72. QPushButton#pBtn_ok
  73. {
  74. color:white;
  75. background: #438EFF;
  76. border-radius: 16px;
  77. }
  78. QPushButton#pBtn_ok:hover
  79. {
  80. color:white;
  81. background: #5F9EFF;
  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: transparent;
  99. border: 1px solid rgba(255,255,255,0.15);
  100. border-radius: 4px;
  101. font-size:14px;
  102. font-weight: 400;
  103. color:#D2D2D2;
  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 #438EFF;
  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: #5C5E61;
  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: #5C5E61;
  151. border-radius:4px;
  152. color: #D2D2D2;
  153. padding-left: 12px;
  154. height: 32px;
  155. }
  156. QComboBox QAbstractItemView::item:hover
  157. {
  158. color: #FFFFFF;
  159. border-radius:4px;
  160. background-color: #438EFF;
  161. }
  162. QComboBox QAbstractItemView::item:selected
  163. {
  164. color: #FFFFFF;
  165. border-radius:4px;
  166. background-color: #438EFF;
  167. }
  168. /******** combobox 滚动条 *********/
  169. QComboBox QScrollBar::vertical{ /*主体部分*/
  170. width:8px;
  171. background:transparent;
  172. border:none;
  173. border-radius:5px;
  174. }
  175. QComboBox QScrollBar::handle::vertical{ /*滑块主体*/
  176. width: 8px;
  177. background: #E2E2E2;
  178. border-radius: 3px;
  179. min-width: 8px;
  180. }
  181. QComboBox QScrollBar::handle::vertical::hover{
  182. background:transparent;
  183. }
  184. QComboBox QScrollBar::add-line::vertical{/*上箭头*/
  185. border:none;
  186. }
  187. QComboBox QScrollBar::sub-line::vertical{/*下箭头*/
  188. border:none;
  189. }
  190. /* ==========================================================
  191. * 时间选择器
  192. * ========================================================== */
  193. QPushButton#pBtn_iconTime
  194. {
  195. border-image: url(:/ICON/ICON/Time.png);
  196. }
  197. TimeWidget
  198. {
  199. /* background: transparent; */
  200. background: #373639;
  201. border-radius: 4px;
  202. padding-left:12px;
  203. border: 1px solid #438EFF;
  204. }
  205. QPushButton#pBtn_selectTime
  206. {
  207. background: transparent;
  208. border: 1px solid rgba(255,255,255,0.15);
  209. border-radius: 4px;
  210. font-size: 14px;
  211. font-weight: 400;
  212. padding-left: 12px;
  213. text-align: left;
  214. }
  215. QPushButton#pBtn_selectTime:hover
  216. {
  217. background: transparent;
  218. border: 1px solid #438EFF;
  219. border-radius: 4px;
  220. font-size: 14px;
  221. font-weight: 400;
  222. padding-left: 12px;
  223. text-align: left;
  224. }
  225. /* 报警红框 */
  226. QPushButton#pBtn_selectTime[Warn=true]
  227. {
  228. background: transparent;
  229. border-radius: 4px;
  230. padding-left:12px;
  231. border: 1px solid #D21F21;
  232. }
  233. QPushButton#btn_tip
  234. {
  235. border-image: url(:/ICON/ICON/Time.png);
  236. }
  237. /* ==========================================================
  238. * 日期选择器
  239. * ========================================================== */
  240. CalendarDTEdit
  241. {
  242. background: transparent;
  243. border-radius: 4px;
  244. padding-left:12px;
  245. border: 1px solid rgba(255,255,255,0.15);
  246. }
  247. CalendarDTEdit:hover
  248. {
  249. background: transparent;
  250. border-radius: 4px;
  251. padding-left:12px;
  252. border: 1px solid #438EFF;
  253. }
  254. CalendarDTEdit[Warn=true]
  255. {
  256. background: transparent;
  257. border-radius: 4px;
  258. padding-left:12px;
  259. border: 1px solid #D21F21;
  260. }
  261. CalendarDTEdit:!enabled/* 或者disable */
  262. {
  263. background: rgba(0,0,0,0.04);
  264. border: 1px solid #E6E9F4;
  265. }
  266. CalendarDTEdit::drop-down
  267. {
  268. padding-right:8px;
  269. width: 16px;
  270. image: url(:/ICON/ICON/date_light.png);
  271. }