light.qss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. * {
  2. font-family: "思源黑体M", "Source Han Sans", "Microsoft YaHei", sans-serif; /* 确保字体的兼容性 */
  3. font-size: 14px;
  4. font-weight: normal;
  5. outline: 0px;
  6. }
  7. /*登录*/
  8. Login QWidget#widget_2
  9. {
  10. background-image: url(:/images/login.png);
  11. }
  12. Login QWidget#widget
  13. {
  14. border-radius: 20px;
  15. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6164D6, stop: 1 #6164D6); /* 第一层渐变 */
  16. }
  17. Login QPushButton
  18. {
  19. color:#FFFFFF;
  20. border-radius: 8px;
  21. background: #9294FF;
  22. }
  23. Login QLineEdit#userNameLineEdit,
  24. Login QLineEdit#passLineEdit
  25. {
  26. color:#FFFFFF;
  27. border-radius: 8px;
  28. padding-left:82px;
  29. border: 1px solid #9294FF;
  30. background: rgba(111, 113, 223, 0.2);
  31. }
  32. Login QLabel#label_user
  33. {
  34. image: url(:/images/login_user.png);
  35. }
  36. Login QLabel#label_pass
  37. {
  38. image: url(:/images/login_pass.png);
  39. }
  40. Login QFrame#line,
  41. Login QFrame#line_2
  42. {
  43. background: #9294FF;
  44. }
  45. /*主界面*/
  46. MainWnd QWidget#TabSideBar
  47. {
  48. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #EEF0F8, stop: 1 #E6E7F9);
  49. }
  50. MainWnd QWidget#centralwidget
  51. {
  52. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #E8EAFA, stop: 1 #D0D1EB);
  53. }
  54. MainWnd QFrame#line,
  55. OriginalWnd QFrame#line_2,
  56. QFrame#line_3,
  57. SingleCameraOperationWnd QFrame#line_2,
  58. MainAndSecondaryCamerasWnd QFrame#line_16,
  59. ChartsAndCamerasWnd QFrame#line_2
  60. {
  61. border:none;
  62. background-color: rgba(186, 189, 220, 0.6);
  63. }
  64. MainWnd QWidget#TabSideBar QToolButton
  65. {
  66. color: #1D2087;
  67. font-weight: bold;
  68. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F8FBFF, stop: 1 #E7ECF3);
  69. border-radius:6px;
  70. }
  71. /*侧边栏按钮*/
  72. QWidget#TabSideBar>QToolButton::hover,QWidget#TabSideBar>QToolButton::checked
  73. {
  74. border:none;
  75. color:#FFFFFF;
  76. background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #949FE8,stop:1 #2D309B);
  77. }
  78. MainWnd QToolButton
  79. {
  80. padding-top: 8px;
  81. }
  82. QWidget#TabSideBar>QToolButton#tabHomeBtn
  83. {
  84. qproperty-icon:url(:/images/light/home.png);
  85. }
  86. QWidget#TabSideBar>QToolButton#tabProductionBtn
  87. {
  88. qproperty-icon:url(:/images/light/Productionn assistance.png);
  89. }
  90. QWidget#TabSideBar>QToolButton#tabProgramBtn
  91. {
  92. qproperty-icon:url(:/images/light/Program.png);
  93. }
  94. QWidget#TabSideBar>QToolButton#tabMessageBtn
  95. {
  96. qproperty-icon:url(:/images/light/Message.png);
  97. }
  98. QWidget#TabSideBar>QToolButton#tabModuleBtn
  99. {
  100. qproperty-icon:url(:/images/light/Module.png);
  101. }
  102. QWidget#TabSideBar>QToolButton#tabDispositionBtn
  103. {
  104. qproperty-icon:url(:/images/light/Disposition.png);
  105. }
  106. QWidget#TabSideBar>QToolButton#tabDiagnosisBtn
  107. {
  108. qproperty-icon:url(:/images/light/Diagnosis.png);
  109. }
  110. QWidget#TabSideBar>QToolButton#tabSystemBtn
  111. {
  112. qproperty-icon:url(:/images/light/System.png);
  113. }
  114. QWidget#TabSideBar>QToolButton#tabHelpBtn
  115. {
  116. qproperty-icon:url(:/images/light/Help.png);
  117. }
  118. /*顶部*/
  119. QWidget#Toptitlebar
  120. {
  121. /*border-radius: 6px;*/
  122. background: #5C63BE;
  123. color: #FFFFFF;
  124. }
  125. QWidget#Toptitlebar QLable#label_4
  126. {
  127. color: #FFFFFF;
  128. }
  129. OriginalWnd QWidget#Toptitlebar QPushButton#CalibrationButton
  130. {
  131. color: #FFFFFF;
  132. border-radius: 4px;
  133. background: #4AA2FF;
  134. }
  135. QWidget#Toptitlebar QPushButton#pushButton_2
  136. {
  137. background-color: transparent;
  138. image: url(:/images/two.png);
  139. }
  140. QWidget#Toptitlebar QPushButton#pushButton_3
  141. {
  142. background-color: transparent;
  143. image: url(:/images/one.png);
  144. }
  145. /*初始界面*/
  146. OriginalWnd QWidget#widget_2,
  147. OriginalWnd QWidget#widget
  148. {
  149. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F1F4FD, stop: 1 #E5E4F6);
  150. border-radius: 10px;
  151. }
  152. OriginalWnd QWidget#widget QToolButton#toolButton
  153. {
  154. border-radius: 6px;
  155. background: #F02962;
  156. color: #FFFFFF;
  157. padding-bottom: 13px;
  158. padding-left: 28px;
  159. }
  160. OriginalWnd QWidget#widget QToolButton#toolButton_2
  161. {
  162. border-radius: 6px;
  163. background: #4AB832;
  164. color: #FFFFFF;
  165. padding-bottom: 13px;
  166. padding-left: 28px;
  167. }
  168. OriginalWnd QWidget#widget QPushButton#ChartButton:hover,
  169. OriginalWnd QWidget#widget QPushButton#DoubleImageButton:hover,
  170. OriginalWnd QWidget#widget QPushButton#SingleImageButton:hover,
  171. OriginalWnd QWidget#widget QPushButton#ChartButton:checked,
  172. OriginalWnd QWidget#widget QPushButton#DoubleImageButton:checked,
  173. OriginalWnd QWidget#widget QPushButton#SingleImageButton:checked
  174. {
  175. background: #A9B4FF;
  176. }
  177. OriginalWnd QWidget#widget QPushButton#ChartButton
  178. {
  179. border-radius: 6px;
  180. background: #CBD0FF;
  181. image: url(:/images/light/Demo001_1.png);
  182. }
  183. OriginalWnd QWidget#widget QPushButton#DoubleImageButton
  184. {
  185. border-radius: 6px;
  186. background: #CBD0FF;
  187. image: url(:/images/light/Demo001_2.png);
  188. }
  189. OriginalWnd QWidget#widget QPushButton#SingleImageButton
  190. {
  191. border-radius: 6px;
  192. background: #CBD0FF;
  193. image: url(:/images/light/Demo001_3.png);
  194. }
  195. /* SingleCameraOperationWnd */
  196. QComboBox
  197. {
  198. border:1px solid #BABBDC;
  199. border-radius:6px;
  200. background:#FFFFFF;
  201. }
  202. QComboBox::down-arrow
  203. {
  204. image: url(:/images/drop.png);
  205. width: 30px;
  206. height:30px;
  207. }
  208. QComboBox::drop-down
  209. {
  210. width:20px;
  211. border:none;
  212. padding-right:5px;
  213. }
  214. SingleCameraOperationWnd QWidget#centralwidget,
  215. MainAndSecondaryCamerasWnd QWidget#centralwidget,
  216. ChartsAndCamerasWnd QWidget#Leftwidget,
  217. ChartsAndCamerasWnd QWidget#Rightwidget
  218. {
  219. border-radius: 10px;
  220. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F1F4FD, stop: 1 #E5E4F6);
  221. }
  222. Group QPushButton#GroupButton
  223. {
  224. image: url(:/images/unknown_1.png);
  225. border-radius: 6px;
  226. background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #949FE8,stop:1 #2D309B);
  227. }
  228. SingleCameraOperationWnd QPushButton#LiveButton,
  229. MainAndSecondaryCamerasWnd QPushButton#LeftLiveButton,
  230. MainAndSecondaryCamerasWnd QPushButton#RightLiveButton,
  231. ChartsAndCamerasWnd QPushButton#LiveButton
  232. {
  233. color: #FFFFFF;
  234. border-radius: 6px;
  235. background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #949FE8,stop:1 #2D309B);
  236. }
  237. SingleCameraOperationWnd QWidget#widget_6,
  238. SingleCameraOperationWnd QWidget#widget_7,
  239. SingleCameraOperationWnd QWidget#widget_8,
  240. MainAndSecondaryCamerasWnd QWidget#widget_6,
  241. MainAndSecondaryCamerasWnd QWidget#widget_7,
  242. MainAndSecondaryCamerasWnd QWidget#widget_8,
  243. ChartsAndCamerasWnd QWidget#widget_6,
  244. ChartsAndCamerasWnd QWidget#widget_7,
  245. ChartsAndCamerasWnd QWidget#widget_8
  246. {
  247. background: #D6D8ED;
  248. }
  249. SingleCameraOperationWnd QLineEdit,
  250. MainAndSecondaryCamerasWnd QLineEdit,
  251. ChartsAndCamerasWnd QLineEdit
  252. {
  253. border-radius: 6px;
  254. border: 1px solid #BABBDC;
  255. }
  256. SingleCameraOperationWnd QWidget#BackGround,
  257. MainAndSecondaryCamerasWnd QWidget#LeftBackGround,
  258. MainAndSecondaryCamerasWnd QWidget#RightBackGround,
  259. ChartsAndCamerasWnd QWidget#BackGround
  260. {
  261. background: #FFFFFF;
  262. border: 1px solid #BABBDC;
  263. border-radius: 0px;
  264. }
  265. SingleCameraOperationWnd QLabel#label_4,
  266. MainAndSecondaryCamerasWnd QLabel#label_4,
  267. ChartsAndCamerasWnd QLabel#label_4
  268. {
  269. image: url(:/images/unknown_2.png);
  270. }
  271. SingleCameraOperationWnd QLabel#label_5,
  272. MainAndSecondaryCamerasWnd QLabel#label_5,
  273. ChartsAndCamerasWnd QLabel#label_5
  274. {
  275. image: url(:/images/unknown_2_2.png);
  276. }
  277. SingleCameraOperationWnd QLabel#label_6,
  278. MainAndSecondaryCamerasWnd QLabel#label_6,
  279. ChartsAndCamerasWnd QLabel#label_6
  280. {
  281. image: url(:/images/unknown_3_1.png);
  282. }
  283. SingleCameraOperationWnd QLabel#label_7,
  284. MainAndSecondaryCamerasWnd QLabel#label_7,
  285. ChartsAndCamerasWnd QLabel#label_7
  286. {
  287. image: url(:/images/unknown_3_2.png);
  288. }
  289. SingleCameraOperationWnd QLabel#label_8,
  290. MainAndSecondaryCamerasWnd QLabel#label_11,
  291. ChartsAndCamerasWnd QLabel#label_11
  292. {
  293. image: url(:/images/unknown_4_1.png);
  294. }
  295. SingleCameraOperationWnd QLabel#label_9,
  296. MainAndSecondaryCamerasWnd QLabel#label_12,
  297. ChartsAndCamerasWnd QLabel#label_12
  298. {
  299. image: url(:/images/unknown_4_2.png);
  300. }
  301. /* 工具栏 */
  302. SingleCameraOperationWnd QWidget#Toolbar,
  303. MainAndSecondaryCamerasWnd QWidget#LeftToolbar,
  304. MainAndSecondaryCamerasWnd QWidget#RightToolbar,
  305. ChartsAndCamerasWnd QWidget#Toolbar
  306. {
  307. border-radius: 6px;
  308. background: #CBD0FF;
  309. }
  310. SingleCameraOperationWnd QWidget#Toolbar QPushButton,
  311. MainAndSecondaryCamerasWnd QWidget#LeftToolbar QPushButton,
  312. MainAndSecondaryCamerasWnd QWidget#RightToolbar QPushButton,
  313. ChartsAndCamerasWnd QWidget#Toolbar QPushButton
  314. {
  315. border-radius: 6px;
  316. background: #CBD0FF;
  317. border:none;
  318. }
  319. SingleCameraOperationWnd QFrame#line,
  320. SingleCameraOperationWnd QFrame#line_3,
  321. SingleCameraOperationWnd QFrame#line_4,
  322. SingleCameraOperationWnd QFrame#line_5,
  323. SingleCameraOperationWnd QFrame#line_6,
  324. MainAndSecondaryCamerasWnd QFrame#line_1,
  325. MainAndSecondaryCamerasWnd QFrame#line_3,
  326. MainAndSecondaryCamerasWnd QFrame#line_4,
  327. MainAndSecondaryCamerasWnd QFrame#line_5,
  328. MainAndSecondaryCamerasWnd QFrame#line_6,
  329. MainAndSecondaryCamerasWnd QFrame#line_11,
  330. MainAndSecondaryCamerasWnd QFrame#line_12,
  331. MainAndSecondaryCamerasWnd QFrame#line_13,
  332. MainAndSecondaryCamerasWnd QFrame#line_14,
  333. MainAndSecondaryCamerasWnd QFrame#line_15,
  334. ChartsAndCamerasWnd QFrame#line,
  335. ChartsAndCamerasWnd QFrame#line_3,
  336. ChartsAndCamerasWnd QFrame#line_4,
  337. ChartsAndCamerasWnd QFrame#line_5,
  338. ChartsAndCamerasWnd QFrame#line_6
  339. {
  340. border:none;
  341. background-color: rgba(78, 81, 206, 0.5);
  342. }
  343. SingleCameraOperationWnd QPushButton#pushButton_2,
  344. SingleCameraOperationWnd QLabel#label_Percentage,
  345. MainAndSecondaryCamerasWnd QPushButton#pushButton_2,
  346. MainAndSecondaryCamerasWnd QLabel#Leftlabel_Percentage,
  347. MainAndSecondaryCamerasWnd QPushButton#pushButton_4,
  348. MainAndSecondaryCamerasWnd QLabel#Rightlabel_Percentage,
  349. ChartsAndCamerasWnd QPushButton#pushButton_2,
  350. ChartsAndCamerasWnd QLabel#label_Percentage
  351. {
  352. color: #4E51CE;
  353. }
  354. SingleCameraOperationWnd QPushButton#ZoomUpButton,
  355. MainAndSecondaryCamerasWnd QPushButton#LeftZoomUpButton,
  356. MainAndSecondaryCamerasWnd QPushButton#RightZoomUpButton,
  357. ChartsAndCamerasWnd QPushButton#ZoomUpButton
  358. {
  359. image: url(:/images/light/zoom up.png);
  360. }
  361. SingleCameraOperationWnd QPushButton#ZoomOutButton,
  362. MainAndSecondaryCamerasWnd QPushButton#LeftZoomOutButton,
  363. MainAndSecondaryCamerasWnd QPushButton#RightZoomOutButton,
  364. ChartsAndCamerasWnd QPushButton#ZoomOutButton
  365. {
  366. image: url(:/images/light/zoom out.png);
  367. }
  368. SingleCameraOperationWnd QPushButton#RulerButton,
  369. MainAndSecondaryCamerasWnd QPushButton#LeftRulerButton,
  370. MainAndSecondaryCamerasWnd QPushButton#RightRulerButton,
  371. ChartsAndCamerasWnd QPushButton#RulerButton
  372. {
  373. image: url(:/images/light/ruler.png);
  374. }
  375. SingleCameraOperationWnd QPushButton#PenButton,
  376. MainAndSecondaryCamerasWnd QPushButton#LeftPenButton,
  377. MainAndSecondaryCamerasWnd QPushButton#RightPenButton,
  378. ChartsAndCamerasWnd QPushButton#PenButton
  379. {
  380. image: url(:/images/light/pen.png);
  381. }
  382. /* 为垂直滑块设置样式 */
  383. QSlider::groove:vertical {
  384. height: 56px;
  385. width: 3px;
  386. background: rgba(78, 81, 206, 0.25);
  387. }
  388. QSlider::sub-page:vertical {
  389. height: 56px;
  390. width: 3px;
  391. background: rgba(78, 81, 206, 0.25);
  392. }
  393. QSlider::handle:vertical {
  394. border-image: url(:/images/slider.png);
  395. height: 6px;
  396. margin: 0px -5px 0px -5px;
  397. border-radius: 4px;
  398. }
  399. QScrollArea {
  400. background-color: transparent;
  401. border: none;
  402. }
  403. QScrollArea QWidget {
  404. background-color: transparent;
  405. }
  406. QScrollBar
  407. {
  408. background:transparent;
  409. width:10px;
  410. height:10px;
  411. border-radius:5px;
  412. border-style: solid;
  413. }
  414. QScrollBar::handle
  415. {
  416. background: #B5B9ED;
  417. border-radius: 5px;
  418. }
  419. QScrollBar::sub-page
  420. {
  421. background:transparent;
  422. border:none;
  423. }
  424. QScrollBar::add-page
  425. {
  426. background:transparent;
  427. border:none;
  428. }
  429. QScrollBar::up-arrow
  430. {
  431. background:transparent;
  432. border-top-left-radius:5px;
  433. border-top-right-radius:5px;
  434. }
  435. QScrollBar::down-arrow
  436. {
  437. background:transparent;
  438. border-bottom-left-radius:5px;
  439. border-bottom-right-radius:5px;
  440. }
  441. QScrollBar::sub-line
  442. {
  443. background:transparent;
  444. border-radius: 5px;
  445. }
  446. QScrollBar::add-line
  447. {
  448. background:transparent;
  449. border-radius: 5px;
  450. }
  451. ChartsAndCamerasWnd QWidget#Checkwidget
  452. {
  453. border-radius: 6px;
  454. border: 1px solid #BABBDC;
  455. }
  456. ChartsAndCamerasWnd QCheckBox {
  457. border: 0px solid #FFFFFF;
  458. padding: 4px;
  459. spacing: 18px;
  460. }
  461. ChartsAndCamerasWnd QCheckBox::indicator{
  462. border: 1px solid #BABBDC;
  463. width: 12px;
  464. height: 12px;
  465. border-radius: 2px;
  466. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.01 #FFFFFF, stop: 1 #F2F2FA);
  467. }
  468. ChartsAndCamerasWnd QCheckBox::indicator:checked {
  469. image: url(:/images/check_selected.png);
  470. }
  471. ChartsAndCamerasWnd QLabel#GreenDiamond
  472. {
  473. image: url(:/images/Participation display/GreenDiamond.png);
  474. }
  475. ChartsAndCamerasWnd QLabel#RedDiamond
  476. {
  477. image: url(:/images/Participation display/RedDiamond.png);
  478. }
  479. ChartsAndCamerasWnd QLabel#BlueDiamond
  480. {
  481. image: url(:/images/Participation display/BlueDiamond.png);
  482. }
  483. ChartsAndCamerasWnd QLabel#YellowDiamond
  484. {
  485. image: url(:/images/Participation display/YellowDiamond.png);
  486. }
  487. ChartsAndCamerasWnd QLabel#BlackDiamond
  488. {
  489. image: url(:/images/Participation display/BlackDiamond.png);
  490. }
  491. ChartsAndCamerasWnd QLabel#WhiteVerticalBar
  492. {
  493. image: url(:/images/Participation display/White vertical bars.png);
  494. }
  495. ChartsAndCamerasWnd QLabel#RedHorizontalLine
  496. {
  497. image: url(:/images/Participation display/Red horizontal line.png);
  498. }
  499. ChartsAndCamerasWnd QLabel#BlueHorizontalLine
  500. {
  501. image: url(:/images/Participation display/Blue horizontal line.png);
  502. }
  503. ChartsAndCamerasWnd QLabel#BlueVerticalBar
  504. {
  505. image: url(:/images/Participation display/Blue vertical bars.png);
  506. }
  507. ChartsAndCamerasWnd QLabel#GreenVerticalBar
  508. {
  509. image: url(:/images/Participation display/Green vertical bars.png);
  510. }
  511. ChartsAndCamerasWnd QLabel#PurpleVerticalBar
  512. {
  513. image: url(:/images/Participation display/Purple vertical bars.png);
  514. }