light.qss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600
  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/TopStatusBar/MachineLink.png);
  139. }
  140. QWidget#Toptitlebar QPushButton#pushButton_3
  141. {
  142. background-color: transparent;
  143. image: url(:/images/TopStatusBar/HostStatus.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#stopButton
  153. {
  154. border-radius: 6px;
  155. background: #F02962;
  156. color: #FFFFFF;
  157. padding-bottom: 10px;
  158. padding-left: 9px;
  159. }
  160. OriginalWnd QWidget#widget QToolButton#startButton
  161. {
  162. border-radius: 6px;
  163. background: #4AB832;
  164. color: #FFFFFF;
  165. padding-bottom: 10px;
  166. padding-left: 9px;
  167. }
  168. OriginalWnd QWidget#widget>QToolButton#ChartButton::hover,
  169. OriginalWnd QWidget#widget>QToolButton#DoubleImageButton::hover,
  170. OriginalWnd QWidget#widget>QToolButton#SingleImageButton::hover,
  171. OriginalWnd QWidget#widget>QToolButton#ChartButton::checked,
  172. OriginalWnd QWidget#widget>QToolButton#DoubleImageButton::checked,
  173. OriginalWnd QWidget#widget>QToolButton#SingleImageButton::checked
  174. {
  175. background: #8090FF;
  176. }
  177. OriginalWnd QWidget#widget QToolButton#ChartButton
  178. {
  179. border-radius: 6px;
  180. background: #CBD0FF;
  181. padding-bottom: 8px;
  182. qproperty-icon:url(:/images/light/Demo001_1.png);
  183. }
  184. OriginalWnd QWidget#widget QToolButton#DoubleImageButton
  185. {
  186. border-radius: 6px;
  187. background: #CBD0FF;
  188. padding-bottom: 8px;
  189. qproperty-icon:url(:/images/light/Demo001_2.png);
  190. }
  191. OriginalWnd QWidget#widget QToolButton#SingleImageButton
  192. {
  193. border-radius: 6px;
  194. background: #CBD0FF;
  195. padding-bottom: 8px;
  196. qproperty-icon:url(:/images/light/Demo001_3.png);
  197. }
  198. /* SingleCameraOperationWnd */
  199. QComboBox
  200. {
  201. border:1px solid #BABBDC;
  202. border-radius:6px;
  203. background:#FFFFFF;
  204. }
  205. QComboBox::down-arrow
  206. {
  207. image: url(:/images/drop.png);
  208. width: 30px;
  209. height:30px;
  210. }
  211. QComboBox::drop-down
  212. {
  213. width:20px;
  214. border:none;
  215. padding-right:5px;
  216. }
  217. SingleCameraOperationWnd QWidget#centralwidget,
  218. MainAndSecondaryCamerasWnd QWidget#centralwidget,
  219. ChartsAndCamerasWnd QWidget#Leftwidget,
  220. ChartsAndCamerasWnd QWidget#Rightwidget
  221. {
  222. border-radius: 10px;
  223. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F1F4FD, stop: 1 #E5E4F6);
  224. }
  225. Group QPushButton#GroupButton
  226. {
  227. image: url(:/images/LightGroup/LightSwitch.png);
  228. border-radius: 6px;
  229. background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #949FE8,stop:1 #2D309B);
  230. }
  231. SingleCameraOperationWnd QPushButton#LiveButton,
  232. MainAndSecondaryCamerasWnd QPushButton#LeftLiveButton,
  233. MainAndSecondaryCamerasWnd QPushButton#RightLiveButton,
  234. ChartsAndCamerasWnd QPushButton#LiveButton
  235. {
  236. color: #FFFFFF;
  237. border-radius: 6px;
  238. background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #949FE8,stop:1 #2D309B);
  239. }
  240. SingleCameraOperationWnd QWidget#RedLight,
  241. SingleCameraOperationWnd QWidget#GreenLight,
  242. SingleCameraOperationWnd QWidget#BlueLight,
  243. SingleCameraOperationWnd QWidget#DotLight,
  244. MainAndSecondaryCamerasWnd QWidget#RedLight,
  245. MainAndSecondaryCamerasWnd QWidget#GreenLight,
  246. MainAndSecondaryCamerasWnd QWidget#BlueLight,
  247. MainAndSecondaryCamerasWnd QWidget#DotLight,
  248. ChartsAndCamerasWnd QWidget#RedLight,
  249. ChartsAndCamerasWnd QWidget#GreenLight,
  250. ChartsAndCamerasWnd QWidget#BlueLight,
  251. ChartsAndCamerasWnd QWidget#DotLight
  252. {
  253. background: #D6D8ED;
  254. }
  255. SingleCameraOperationWnd QLineEdit,
  256. MainAndSecondaryCamerasWnd QLineEdit,
  257. ChartsAndCamerasWnd QLineEdit
  258. {
  259. border-radius: 6px;
  260. border: 1px solid #BABBDC;
  261. }
  262. SingleCameraOperationWnd QWidget#BackGround,
  263. MainAndSecondaryCamerasWnd QWidget#LeftBackGround,
  264. MainAndSecondaryCamerasWnd QWidget#RightBackGround,
  265. ChartsAndCamerasWnd QWidget#BackGround
  266. {
  267. background: #FFFFFF;
  268. border: 1px solid #BABBDC;
  269. border-radius: 0px;
  270. }
  271. QProgressBar {
  272. border: 2px solid grey;
  273. border-radius: 5px;
  274. background-color: transparent;
  275. }
  276. QProgressBar#RedLightprogressBar::chunk,
  277. QProgressBar#RedLightprogressBar_2::chunk
  278. {
  279. border-radius: 3px;
  280. background-color: red;
  281. }
  282. QProgressBar#GreenLightprogressBar::chunk,
  283. QProgressBar#GreenLightprogressBar_5::chunk
  284. {
  285. border-radius: 3px;
  286. background-color: Green;
  287. }
  288. QProgressBar#BlueLightprogressBar::chunk,
  289. QProgressBar#BlueLightprogressBar_2::chunk
  290. {
  291. border-radius: 3px;
  292. background-color: Blue;
  293. }
  294. QProgressBar#DotLightprogressBar::chunk,
  295. QProgressBar#DotLightprogressBar_2::chunk
  296. {
  297. border-radius: 3px;
  298. background-color: yellow;
  299. }
  300. /* 工具栏 */
  301. SingleCameraOperationWnd QWidget#Toolbar,
  302. MainAndSecondaryCamerasWnd QWidget#LeftToolbar,
  303. MainAndSecondaryCamerasWnd QWidget#RightToolbar,
  304. ChartsAndCamerasWnd QWidget#Toolbar
  305. {
  306. border-radius: 6px;
  307. background: #CBD0FF;
  308. }
  309. SingleCameraOperationWnd QWidget#Toolbar QPushButton,
  310. MainAndSecondaryCamerasWnd QWidget#LeftToolbar QPushButton,
  311. MainAndSecondaryCamerasWnd QWidget#RightToolbar QPushButton,
  312. ChartsAndCamerasWnd QWidget#Toolbar QPushButton
  313. {
  314. border-radius: 6px;
  315. background: #CBD0FF;
  316. border:none;
  317. }
  318. SingleCameraOperationWnd QFrame#line,
  319. SingleCameraOperationWnd QFrame#line_3,
  320. SingleCameraOperationWnd QFrame#line_4,
  321. SingleCameraOperationWnd QFrame#line_5,
  322. SingleCameraOperationWnd QFrame#line_6,
  323. MainAndSecondaryCamerasWnd QFrame#line_1,
  324. MainAndSecondaryCamerasWnd QFrame#line_3,
  325. MainAndSecondaryCamerasWnd QFrame#line_4,
  326. MainAndSecondaryCamerasWnd QFrame#line_5,
  327. MainAndSecondaryCamerasWnd QFrame#line_6,
  328. MainAndSecondaryCamerasWnd QFrame#line_11,
  329. MainAndSecondaryCamerasWnd QFrame#line_12,
  330. MainAndSecondaryCamerasWnd QFrame#line_13,
  331. MainAndSecondaryCamerasWnd QFrame#line_14,
  332. MainAndSecondaryCamerasWnd QFrame#line_15,
  333. ChartsAndCamerasWnd QFrame#line,
  334. ChartsAndCamerasWnd QFrame#line_3,
  335. ChartsAndCamerasWnd QFrame#line_4,
  336. ChartsAndCamerasWnd QFrame#line_5,
  337. ChartsAndCamerasWnd QFrame#line_6
  338. {
  339. border:none;
  340. background-color: rgba(78, 81, 206, 0.5);
  341. }
  342. SingleCameraOperationWnd QPushButton#pushButton_2,
  343. SingleCameraOperationWnd QLabel#label_Percentage,
  344. MainAndSecondaryCamerasWnd QPushButton#pushButton_2,
  345. MainAndSecondaryCamerasWnd QLabel#Leftlabel_Percentage,
  346. MainAndSecondaryCamerasWnd QPushButton#pushButton_4,
  347. MainAndSecondaryCamerasWnd QLabel#Rightlabel_Percentage,
  348. ChartsAndCamerasWnd QPushButton#pushButton_2,
  349. ChartsAndCamerasWnd QLabel#label_Percentage
  350. {
  351. color: #4E51CE;
  352. }
  353. SingleCameraOperationWnd QPushButton#ZoomUpButton,
  354. MainAndSecondaryCamerasWnd QPushButton#LeftZoomUpButton,
  355. MainAndSecondaryCamerasWnd QPushButton#RightZoomUpButton,
  356. ChartsAndCamerasWnd QPushButton#ZoomUpButton
  357. {
  358. image: url(:/images/light/zoom up.png);
  359. }
  360. SingleCameraOperationWnd QPushButton#ZoomOutButton,
  361. MainAndSecondaryCamerasWnd QPushButton#LeftZoomOutButton,
  362. MainAndSecondaryCamerasWnd QPushButton#RightZoomOutButton,
  363. ChartsAndCamerasWnd QPushButton#ZoomOutButton
  364. {
  365. image: url(:/images/light/zoom out.png);
  366. }
  367. SingleCameraOperationWnd QPushButton#RulerButton,
  368. MainAndSecondaryCamerasWnd QPushButton#LeftRulerButton,
  369. MainAndSecondaryCamerasWnd QPushButton#RightRulerButton,
  370. ChartsAndCamerasWnd QPushButton#RulerButton
  371. {
  372. image: url(:/images/light/ruler.png);
  373. }
  374. SingleCameraOperationWnd QPushButton#PenButton,
  375. MainAndSecondaryCamerasWnd QPushButton#LeftPenButton,
  376. MainAndSecondaryCamerasWnd QPushButton#RightPenButton,
  377. ChartsAndCamerasWnd QPushButton#PenButton
  378. {
  379. image: url(:/images/light/pen.png);
  380. }
  381. /* 为垂直滑块设置样式 */
  382. QSlider::groove:vertical {
  383. height: 56px;
  384. width: 3px;
  385. background: rgba(78, 81, 206, 0.25);
  386. }
  387. QSlider::sub-page:vertical {
  388. height: 56px;
  389. width: 3px;
  390. background: rgba(78, 81, 206, 0.25);
  391. }
  392. QSlider::handle:vertical {
  393. border-image: url(:/images/LightGroup/slider.png);
  394. height: 6px;
  395. margin: 0px -5px 0px -5px;
  396. border-radius: 4px;
  397. }
  398. QScrollArea {
  399. background-color: transparent;
  400. border: none;
  401. }
  402. QScrollArea QWidget {
  403. background-color: transparent;
  404. }
  405. QScrollBar
  406. {
  407. background:transparent;
  408. width:10px;
  409. height:10px;
  410. border-radius:5px;
  411. border-style: solid;
  412. }
  413. QScrollBar::handle
  414. {
  415. background: #B5B9ED;
  416. border-radius: 5px;
  417. }
  418. QScrollBar::sub-page
  419. {
  420. background:transparent;
  421. border:none;
  422. }
  423. QScrollBar::add-page
  424. {
  425. background:transparent;
  426. border:none;
  427. }
  428. QScrollBar::up-arrow
  429. {
  430. background:transparent;
  431. border-top-left-radius:5px;
  432. border-top-right-radius:5px;
  433. }
  434. QScrollBar::down-arrow
  435. {
  436. background:transparent;
  437. border-bottom-left-radius:5px;
  438. border-bottom-right-radius:5px;
  439. }
  440. QScrollBar::sub-line
  441. {
  442. background:transparent;
  443. border-radius: 5px;
  444. }
  445. QScrollBar::add-line
  446. {
  447. background:transparent;
  448. border-radius: 5px;
  449. }
  450. ChartsAndCamerasWnd QWidget#Checkwidget
  451. {
  452. border-radius: 6px;
  453. border: 1px solid #BABBDC;
  454. }
  455. ChartsAndCamerasWnd QCheckBox {
  456. border: 0px solid #FFFFFF;
  457. padding: 4px;
  458. spacing: 18px;
  459. }
  460. ChartsAndCamerasWnd QCheckBox::indicator{
  461. border: 1px solid #BABBDC;
  462. width: 12px;
  463. height: 12px;
  464. border-radius: 2px;
  465. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.01 #FFFFFF, stop: 1 #F2F2FA);
  466. }
  467. ChartsAndCamerasWnd QCheckBox::indicator:checked {
  468. image: url(:/images/check_selected.png);
  469. }
  470. ChartsAndCamerasWnd QLabel#GreenDiamond
  471. {
  472. image: url(:/images/Participation display/GreenDiamond.png);
  473. }
  474. ChartsAndCamerasWnd QLabel#RedDiamond
  475. {
  476. image: url(:/images/Participation display/RedDiamond.png);
  477. }
  478. ChartsAndCamerasWnd QLabel#BlueDiamond
  479. {
  480. image: url(:/images/Participation display/BlueDiamond.png);
  481. }
  482. ChartsAndCamerasWnd QLabel#YellowDiamond
  483. {
  484. image: url(:/images/Participation display/YellowDiamond.png);
  485. }
  486. ChartsAndCamerasWnd QLabel#BlackDiamond
  487. {
  488. image: url(:/images/Participation display/BlackDiamond.png);
  489. }
  490. ChartsAndCamerasWnd QLabel#WhiteVerticalBar
  491. {
  492. image: url(:/images/Participation display/White vertical bars.png);
  493. }
  494. ChartsAndCamerasWnd QLabel#RedHorizontalLine
  495. {
  496. image: url(:/images/Participation display/Red horizontal line.png);
  497. }
  498. ChartsAndCamerasWnd QLabel#BlueHorizontalLine
  499. {
  500. image: url(:/images/Participation display/Blue horizontal line.png);
  501. }
  502. ChartsAndCamerasWnd QLabel#BlueVerticalBar
  503. {
  504. image: url(:/images/Participation display/Blue vertical bars.png);
  505. }
  506. ChartsAndCamerasWnd QLabel#GreenVerticalBar
  507. {
  508. image: url(:/images/Participation display/Green vertical bars.png);
  509. }
  510. ChartsAndCamerasWnd QLabel#PurpleVerticalBar
  511. {
  512. image: url(:/images/Participation display/Purple vertical bars.png);
  513. }