managerplan.qss 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. /* ==========================================================
  2. * 通用样式
  3. * ========================================================== */
  4. QWidget
  5. {
  6. font-size: 14px;
  7. color: #D2D2D2;
  8. line-height: 21px;
  9. text-align: left;
  10. font-style: normal;
  11. border-radius: 8px;
  12. background: transparent;
  13. }
  14. QWidget#widget
  15. {
  16. background: rgba(0,0,0,0.01);
  17. }
  18. QWidget#widget_background
  19. {
  20. background-color: #464649;
  21. }
  22. QWidget#widget_top
  23. {
  24. /* background: rgba(108,105,124,0.2); */
  25. border-top-left-radius: 8px;
  26. border-top-right-radius: 8px;
  27. border-bottom-left-radius: 0px;
  28. border-bottom-right-radius: 0px;
  29. border-bottom: 1px solid rgba(255,255,255,0.15);
  30. }
  31. QLabel#label_title
  32. {
  33. background: transparent;
  34. font-size: 18px;
  35. color: #EBEBEB;
  36. line-height: 27px;
  37. text-align: left;
  38. font-style: normal;
  39. text-transform: uppercase;
  40. }
  41. QLabel#label_x1, #label_x2, #label_x3, #label_x4, #label_x5, #label_x6
  42. {
  43. background: transparent;
  44. font-size: 14px;
  45. color: #F53F3F;
  46. text-align: left;
  47. font-style: normal;
  48. }
  49. QPushButton
  50. {
  51. text-align: center;
  52. }
  53. QPushButton#pBtn_close
  54. {
  55. background: transparent;
  56. border-radius: 4px;
  57. qproperty-icon: url(:/ICON/ICON/Close_Dark.png);
  58. qproperty-iconSize: 20px 20px;
  59. }
  60. QPushButton#pBtn_close[Hover = true]
  61. {
  62. background: transparent;
  63. border-radius: 4px;
  64. qproperty-icon: url(:/ICON/ICON/Close_pass.png);
  65. qproperty-iconSize: 20px 20px;
  66. border: 1px solid #438EFF;
  67. }
  68. /********* 普通椭圆按钮三种状态效果 *********/
  69. QPushButton#pBtn_cancel, #pBtn_saveTotemplate
  70. {
  71. color: #EBEBEB;
  72. border: 1px solid rgba(255,255,255,0.25);
  73. border-radius: 16px;
  74. background: transparent;
  75. }
  76. QPushButton#pBtn_cancel:hover, #pBtn_saveTotemplate:hover
  77. {
  78. color: #EBEBEB;
  79. border: 1px solid rgba(255,255,255,0.25);
  80. border-radius: 16px;
  81. background: rgba(0,0,0,0.15);
  82. }
  83. /********* 带有底色椭圆按钮三种状态效果 *********/
  84. QPushButton#pBtn_ok
  85. {
  86. color:white;
  87. background: #438EFF;
  88. border-radius: 16px;
  89. }
  90. QPushButton#pBtn_ok:hover
  91. {
  92. color:white;
  93. background: #5F9EFF;
  94. border-radius: 16px;
  95. }
  96. /********* 普通方框按钮三种状态效果 *********/
  97. QPushButton#pBtn_deletePlan, #pBtn_editPlan
  98. {
  99. color: #EBEBEB;
  100. border: 1px solid rgba(255,255,255,0.25);
  101. border-radius: 4px;
  102. background: transparent;
  103. }
  104. QPushButton#pBtn_deletePlan:hover, #pBtn_editPlan:hover
  105. {
  106. color: #EBEBEB;
  107. border: 1px solid rgba(255,255,255,0.25);
  108. border-radius: 4px;
  109. background: rgba(0,0,0,0.15);
  110. }
  111. /********* 带有底色方框按钮三种状态效果 *********/
  112. QPushButton#pBtn_addPlan
  113. {
  114. color:white;
  115. background: #438EFF;
  116. border-radius: 4px;
  117. }
  118. QPushButton#pBtn_addPlan:hover
  119. {
  120. color:white;
  121. background: #5F9EFF;
  122. border-radius: 4px;
  123. }
  124. QLabel#label_devWarn,QLabel#label_timeWarn,QLabel#label_actionWarn
  125. {
  126. /* font-weight: 400; */
  127. font-size: 14px;
  128. color: #D21F21;
  129. line-height: 21px;
  130. text-align: left;
  131. font-style: normal;
  132. }
  133. /* ==========================================================
  134. * QComboBox(这个是在用的)
  135. * ========================================================== */
  136. QComboBox:enabled
  137. {
  138. background: transparent;
  139. border: 1px solid rgba(255,255,255,0.15);
  140. border-radius: 4px;
  141. font-size:14px;
  142. /* font-weight: 400; */
  143. color:#D2D2D2;
  144. padding-left: 12px;
  145. }
  146. QComboBox:enabled[Warn=true]
  147. {
  148. background-color: transparent;
  149. border: 1px solid #D21F21;
  150. border-radius: 4px;
  151. font-size:14px;
  152. /* font-weight: 400; */
  153. color:#3A3F63;
  154. padding-left: 12px;
  155. }
  156. /* 不能编辑的时候的样式,setEnable(false) */
  157. QComboBox:!enabled
  158. {
  159. background:rgba(0,0,0,0.04);
  160. border: 1px solid #E6E9F4;
  161. border-radius: 4px;
  162. font-size:14px;
  163. /* font-weight: 400; */
  164. color:rgba(58,63,99,0.65);
  165. padding-left: 12px;
  166. }
  167. QComboBox:hover
  168. {
  169. border: 1px solid #438EFF;
  170. border-radius: 4px;
  171. background:transparent;
  172. }
  173. /* 下拉箭头所在的位置方框 */
  174. QComboBox::drop-down
  175. {
  176. width: 24px;
  177. border: none;
  178. }
  179. /* 下拉箭头图标 */
  180. QComboBox::down-arrow
  181. {
  182. image: url(:/ICON/ICON/DownArrow_Dark.png);
  183. height:16px;
  184. width:16px;
  185. }
  186. /* 下拉条样式,就是view,整个下拉窗体的样式 */
  187. QComboBox QAbstractItemView
  188. {
  189. background-color: #5C5E61;
  190. margin: 12px;
  191. outline:0px;
  192. font-size:14px;
  193. /* color: #3A3F63; */
  194. border-radius: 4px;
  195. }
  196. /* 使下面两句生效,需要加上如下语句 */
  197. /* m_comBoxDev->setView(new QListView()); */
  198. QComboBox QAbstractItemView::item
  199. {
  200. background-color: #5C5E61;
  201. border-radius:4px;
  202. color: #D2D2D2;
  203. padding-left: 12px;
  204. height: 32px;
  205. }
  206. QComboBox QAbstractItemView::item:hover
  207. {
  208. color: #FFFFFF;
  209. border-radius:4px;
  210. background-color: #438EFF;
  211. }
  212. QComboBox QAbstractItemView::item:selected
  213. {
  214. color: #FFFFFF;
  215. border-radius:4px;
  216. background-color: #438EFF;
  217. }
  218. /******** combobox 滚动条 *********/
  219. QComboBox QScrollBar::vertical{ /*主体部分*/
  220. width:8px;
  221. background:transparent;
  222. border:none;
  223. border-radius:5px;
  224. }
  225. QComboBox QScrollBar::handle::vertical{ /*滑块主体*/
  226. width: 8px;
  227. background: #E2E2E2;
  228. border-radius: 3px;
  229. min-width: 8px;
  230. }
  231. QComboBox QScrollBar::handle::vertical::hover{
  232. background:transparent;
  233. }
  234. QComboBox QScrollBar::add-line::vertical{/*上箭头*/
  235. border:none;
  236. }
  237. QComboBox QScrollBar::sub-line::vertical{/*下箭头*/
  238. border:none;
  239. }
  240. /* ==========================================================
  241. * 时间报警红框
  242. * ========================================================== */
  243. TimeWidget
  244. {
  245. background: transparent;
  246. /* background: #373639; */
  247. border-radius: 4px;
  248. padding-left:12px;
  249. border: 1px solid rgba(255,255,255,0.15);
  250. }
  251. TimeWidget:hover
  252. {
  253. background: transparent;
  254. /* background: #373639; */
  255. border-radius: 4px;
  256. padding-left:12px;
  257. border: 1px solid #438EFF;
  258. }
  259. QPushButton#pBtn_selectTime
  260. {
  261. /* font-family: 思源黑体R; */
  262. background: transparent;
  263. border: 1px solid rgba(255,255,255,0.15);
  264. border-radius: 4px;
  265. font-size: 14px;
  266. /* font-weight: 400; */
  267. padding-left: 12px;
  268. text-align: left;
  269. }
  270. QPushButton#pBtn_selectTime:hover
  271. {
  272. /* font-family: 思源黑体R; */
  273. background: transparent;
  274. border: 1px solid #438EFF;
  275. border-radius: 4px;
  276. font-size: 14px;
  277. /* font-weight: 400; */
  278. padding-left: 12px;
  279. text-align: left;
  280. }
  281. /* 报警红框 */
  282. QPushButton#pBtn_selectTime[Warn=true]
  283. {
  284. background: transparent;
  285. border-radius: 4px;
  286. padding-left:12px;
  287. border: 1px solid #D21F21;
  288. }
  289. /* ==========================================================
  290. * 日期选择器
  291. * ========================================================== */
  292. CalendarDTEdit
  293. {
  294. background: transparent;
  295. border-radius: 4px;
  296. padding-left:12px;
  297. border: 1px solid rgba(255,255,255,0.15);
  298. }
  299. CalendarDTEdit:hover
  300. {
  301. background: transparent;
  302. border-radius: 4px;
  303. padding-left:12px;
  304. border: 1px solid #438EFF;
  305. }
  306. CalendarDTEdit[Warn=true]
  307. {
  308. background: transparent;
  309. border-radius: 4px;
  310. padding-left:12px;
  311. border: 1px solid #D21F21;
  312. }
  313. CalendarDTEdit:!enabled/* 或者disable */
  314. {
  315. background: rgba(0,0,0,0.04);
  316. border: 1px solid #E6E9F4;
  317. }
  318. CalendarDTEdit::drop-down
  319. {
  320. padding-right:8px;
  321. width: 16px;
  322. image: url(:/ICON/ICON/date_dark.png);
  323. }
  324. /* ==========================================================
  325. * QTabWidget
  326. * ========================================================== */
  327. /* 设置 TabBar 的整体背景颜色 */
  328. QTabBar
  329. {
  330. background: #555557; /* 整体背景颜色 */
  331. border-radius: 2px; /* 圆角 */
  332. }
  333. /* 设置标签的默认样式 */
  334. QTabBar::tab
  335. {
  336. min-width: 66px; /* 标签最小宽度 */
  337. min-height: 28px; /* 标签最小高度 */
  338. border-radius: 2px; /* 圆角 */
  339. margin: 6px;
  340. font-weight: 400;
  341. font-size: 14px;
  342. color: #B1B3B4;
  343. line-height: 20px;
  344. text-align: left;
  345. font-style: normal;
  346. text-transform: none;
  347. }
  348. /* 设置选中标签的样式 */
  349. QTabBar::tab:selected
  350. {
  351. background: #438EFF; /* 选中标签的背景颜色 */
  352. border-radius: 2px; /* 圆角 */
  353. margin: 6px; /* 内缩 6px */
  354. font-weight: 500;
  355. font-size: 14px;
  356. color: #FFFFFF;
  357. line-height: 20px;
  358. text-align: left;
  359. font-style: normal;
  360. text-transform: none;
  361. }
  362. QTabWidget::pane
  363. {
  364. border: none; /* 去掉边框 */
  365. }
  366. QWidget#tab_week, #tab_special
  367. {
  368. background: #464649;
  369. border-radius: 0px;
  370. border: 0px solid rgba(255,255,255,0.15);
  371. }