managerplan.qss 8.6 KB

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