dark.qss 23 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111
  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: #2F3297;
  49. }
  50. MainWnd QWidget#centralwidget
  51. {
  52. background: #1D2087;
  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. SingleCameraOperationWnd QWidget#centralwidget,
  65. MainAndSecondaryCamerasWnd QWidget#centralwidget,
  66. ChartsAndCamerasWnd QWidget#Leftwidget,
  67. ChartsAndCamerasWnd QWidget#Rightwidget
  68. {
  69. border-radius: 10px;
  70. background: #2F3297;
  71. }
  72. MainWnd QWidget#TabSideBar QToolButton
  73. {
  74. color: #FFFFFF;
  75. font-weight: bold;
  76. background: #5A5CAD;
  77. border-radius:6px;
  78. }
  79. MainWnd QLabel#label_logo_m {
  80. image: url(:/images/deep/logo1.png);
  81. }
  82. /*侧边栏按钮*/
  83. QWidget#TabSideBar>QToolButton::hover,QWidget#TabSideBar>QToolButton::checked
  84. {
  85. border:none;
  86. color:#FFFFFF;
  87. background: #E17D07;
  88. }
  89. MainWnd QToolButton
  90. {
  91. padding-top: 8px;
  92. }
  93. QWidget#TabSideBar>QToolButton#tabHomeBtn
  94. {
  95. qproperty-icon:url(:/images/deep/home.png);
  96. }
  97. QWidget#TabSideBar>QToolButton#tabProductionBtn
  98. {
  99. qproperty-icon:url(:/images/deep/Productionn assistance.png);
  100. }
  101. QWidget#TabSideBar>QToolButton#tabProgramBtn
  102. {
  103. qproperty-icon:url(:/images/deep/Program.png);
  104. }
  105. QWidget#TabSideBar>QToolButton#tabMessageBtn
  106. {
  107. qproperty-icon:url(:/images/deep/Message.png);
  108. }
  109. QWidget#TabSideBar>QToolButton#tabModuleBtn
  110. {
  111. qproperty-icon:url(:/images/deep/Module.png);
  112. }
  113. QWidget#TabSideBar>QToolButton#tabDispositionBtn
  114. {
  115. qproperty-icon:url(:/images/deep/Disposition.png);
  116. }
  117. QWidget#TabSideBar>QToolButton#tabDiagnosisBtn
  118. {
  119. qproperty-icon:url(:/images/deep/Diagnosis.png);
  120. }
  121. QWidget#TabSideBar>QToolButton#tabSystemBtn
  122. {
  123. qproperty-icon:url(:/images/deep/System.png);
  124. }
  125. QWidget#TabSideBar>QToolButton#tabHelpBtn
  126. {
  127. qproperty-icon:url(:/images/deep/Help.png);
  128. }
  129. /*顶部*/
  130. QWidget#Toptitlebar
  131. {
  132. /*border-radius: 6px;*/
  133. background: #4E53B8;
  134. color: #FFFFFF;
  135. }
  136. QWidget#Toptitlebar QLable#label_4
  137. {
  138. color: #FFFFFF;
  139. }
  140. OriginalWnd QWidget#Toptitlebar QPushButton#CalibrationButton
  141. {
  142. color: #FFFFFF;
  143. border-radius: 4px;
  144. background: #4AA2FF;
  145. }
  146. QWidget#Toptitlebar QPushButton#pushButton_2
  147. {
  148. background-color: transparent;
  149. image: url(:/images/TopStatusBar/MachineLink.png);
  150. }
  151. QWidget#Toptitlebar QPushButton#pushButton_3
  152. {
  153. background-color: transparent;
  154. image: url(:/images/TopStatusBar/HostStatus.png);
  155. }
  156. /*初始界面*/
  157. OriginalWnd QWidget#widget_2,
  158. OriginalWnd QWidget#widget
  159. {
  160. background: #2F3297;
  161. border-radius: 10px;
  162. }
  163. OriginalWnd QWidget#widget QToolButton#stopButton
  164. {
  165. border-radius: 6px;
  166. background: #F02962;
  167. color: #FFFFFF;
  168. padding-bottom: 10px;
  169. padding-left: 9px;
  170. }
  171. OriginalWnd QWidget#widget QToolButton#startButton
  172. {
  173. border-radius: 6px;
  174. background: #4AB832;
  175. color: #FFFFFF;
  176. padding-bottom: 10px;
  177. padding-left: 9px;
  178. }
  179. OriginalWnd QWidget#widget>QToolButton#ChartButton::hover,
  180. OriginalWnd QWidget#widget>QToolButton#DoubleImageButton::hover,
  181. OriginalWnd QWidget#widget>QToolButton#SingleImageButton::hover,
  182. OriginalWnd QWidget#widget>QToolButton#ChartButton::checked,
  183. OriginalWnd QWidget#widget>QToolButton#DoubleImageButton::checked,
  184. OriginalWnd QWidget#widget>QToolButton#SingleImageButton::checked
  185. {
  186. background: #E17D07;
  187. }
  188. OriginalWnd QWidget#widget QToolButton#ChartButton
  189. {
  190. border-radius: 6px;
  191. background: #5A5CAD;
  192. padding-bottom: 8px;
  193. qproperty-icon:url(:/images/deep/Demo001_1.png);
  194. }
  195. OriginalWnd QWidget#widget QToolButton#DoubleImageButton
  196. {
  197. border-radius: 6px;
  198. background: #5A5CAD;
  199. padding-bottom: 8px;
  200. qproperty-icon:url(:/images/deep/Demo001_2.png);
  201. }
  202. OriginalWnd QWidget#widget QToolButton#SingleImageButton
  203. {
  204. border-radius: 6px;
  205. background: #5A5CAD;
  206. padding-bottom: 8px;
  207. qproperty-icon:url(:/images/deep/Demo001_3.png);
  208. }
  209. SingleCameraOperationWnd QWidget#centralwidget,
  210. MainAndSecondaryCamerasWnd QWidget#centralwidget,
  211. ChartsAndCamerasWnd QWidget#Leftwidget,
  212. ChartsAndCamerasWnd QWidget#Rightwidget
  213. {
  214. border-radius: 10px;
  215. background: #2F3297;
  216. }
  217. Group QPushButton#GroupButton
  218. {
  219. image: url(:/images/LightGroup/LightSwitch.png);
  220. border-radius: 6px;
  221. background: #6A6FFF;
  222. }
  223. SingleCameraOperationWnd QPushButton#LiveButton,
  224. MainAndSecondaryCamerasWnd QPushButton#LeftLiveButton,
  225. MainAndSecondaryCamerasWnd QPushButton#RightLiveButton,
  226. ChartsAndCamerasWnd QPushButton#LiveButton
  227. {
  228. color: #FFFFFF;
  229. border-radius: 6px;
  230. background: #6A6FFF;
  231. }
  232. SingleCameraOperationWnd QWidget#RedLight,
  233. SingleCameraOperationWnd QWidget#GreenLight,
  234. SingleCameraOperationWnd QWidget#BlueLight,
  235. SingleCameraOperationWnd QWidget#DotLight,
  236. MainAndSecondaryCamerasWnd QWidget#RedLight,
  237. MainAndSecondaryCamerasWnd QWidget#GreenLight,
  238. MainAndSecondaryCamerasWnd QWidget#BlueLight,
  239. MainAndSecondaryCamerasWnd QWidget#DotLight,
  240. MainAndSecondaryCamerasWnd QWidget#RedLight_L,
  241. MainAndSecondaryCamerasWnd QWidget#GreenLight_L,
  242. MainAndSecondaryCamerasWnd QWidget#BlueLight_L,
  243. MainAndSecondaryCamerasWnd QWidget#DotLight_L,
  244. ChartsAndCamerasWnd QWidget#RedLight,
  245. ChartsAndCamerasWnd QWidget#GreenLight,
  246. ChartsAndCamerasWnd QWidget#BlueLight,
  247. ChartsAndCamerasWnd QWidget#DotLight
  248. {
  249. background: #4E53B8;
  250. }
  251. SingleCameraOperationWnd QLineEdit,
  252. MainAndSecondaryCamerasWnd QLineEdit,
  253. ChartsAndCamerasWnd QLineEdit
  254. {
  255. background: #4C4FA6;
  256. border-radius: 6px;
  257. border: 1px solid #6D6FB6;
  258. color: #FFFFFF;
  259. }
  260. SingleCameraOperationWnd QWidget#BackGround,
  261. MainAndSecondaryCamerasWnd QWidget#LeftBackGround,
  262. MainAndSecondaryCamerasWnd QWidget#RightBackGround,
  263. ChartsAndCamerasWnd QWidget#BackGround
  264. {
  265. background: #FFFFFF;
  266. border: 1px solid #BABBDC;
  267. border-radius: 0px;
  268. }
  269. QProgressBar {
  270. border: 2px solid grey;
  271. border-radius: 5px;
  272. background-color: transparent;
  273. }
  274. QProgressBar#RedLightprogressBar::chunk,
  275. QProgressBar#RedLightprogressBar_2::chunk,
  276. QProgressBar#RedLightprogressBar_L::chunk
  277. {
  278. border-radius: 3px;
  279. background-color: red;
  280. height: 1px;
  281. }
  282. QProgressBar#GreenLightprogressBar::chunk,
  283. QProgressBar#GreenLightprogressBar_5::chunk,
  284. QProgressBar#GreenLightprogressBar_L::chunk
  285. {
  286. border-radius: 3px;
  287. background-color: Green;
  288. height: 1px;
  289. }
  290. QProgressBar#BlueLightprogressBar::chunk,
  291. QProgressBar#BlueLightprogressBar_2::chunk,
  292. QProgressBar#BlueLightprogressBar_L::chunk
  293. {
  294. border-radius: 3px;
  295. background-color: Blue;
  296. height: 1px;
  297. }
  298. QProgressBar#DotLightprogressBar::chunk,
  299. QProgressBar#DotLightprogressBar_2::chunk,
  300. QProgressBar#DotLightprogressBar_L::chunk
  301. {
  302. border-radius: 3px;
  303. background-color: yellow;
  304. height: 1px;
  305. }
  306. /* 工具栏 */
  307. SingleCameraOperationWnd QWidget#Toolbar,
  308. MainAndSecondaryCamerasWnd QWidget#LeftToolbar,
  309. MainAndSecondaryCamerasWnd QWidget#RightToolbar,
  310. ChartsAndCamerasWnd QWidget#Toolbar
  311. {
  312. border-radius: 6px;
  313. background: #4E53B8;
  314. }
  315. SingleCameraOperationWnd QWidget#Toolbar QPushButton,
  316. MainAndSecondaryCamerasWnd QWidget#LeftToolbar QPushButton,
  317. MainAndSecondaryCamerasWnd QWidget#RightToolbar QPushButton,
  318. ChartsAndCamerasWnd QWidget#Toolbar QPushButton
  319. {
  320. border-radius: 6px;
  321. background: #4E53B8;
  322. border:none;
  323. }
  324. SingleCameraOperationWnd QPushButton#pushButton_2,
  325. SingleCameraOperationWnd QLabel#label_Percentage,
  326. MainAndSecondaryCamerasWnd QPushButton#pushButton_2,
  327. MainAndSecondaryCamerasWnd QLabel#Leftlabel_Percentage,
  328. MainAndSecondaryCamerasWnd QPushButton#pushButton_4,
  329. MainAndSecondaryCamerasWnd QLabel#Rightlabel_Percentage,
  330. ChartsAndCamerasWnd QPushButton#pushButton_2,
  331. ChartsAndCamerasWnd QLabel#label_Percentage
  332. {
  333. color: #FFFFFF;
  334. }
  335. QScrollArea {
  336. background-color: transparent;
  337. border: none;
  338. }
  339. QScrollArea QWidget {
  340. background-color: transparent;
  341. }
  342. QScrollBar
  343. {
  344. background:transparent;
  345. width:10px;
  346. height:10px;
  347. border-radius:5px;
  348. border-style: solid;
  349. }
  350. QScrollBar::handle
  351. {
  352. background: #5058B3;
  353. border-radius: 5px;
  354. }
  355. QScrollBar::sub-page
  356. {
  357. background:transparent;
  358. border:none;
  359. }
  360. QScrollBar::add-page
  361. {
  362. background:transparent;
  363. border:none;
  364. }
  365. QScrollBar::up-arrow
  366. {
  367. background:transparent;
  368. border-top-left-radius:5px;
  369. border-top-right-radius:5px;
  370. }
  371. QScrollBar::down-arrow
  372. {
  373. background:transparent;
  374. border-bottom-left-radius:5px;
  375. border-bottom-right-radius:5px;
  376. }
  377. QScrollBar::sub-line
  378. {
  379. background:transparent;
  380. border-radius: 5px;
  381. }
  382. QScrollBar::add-line
  383. {
  384. background:transparent;
  385. border-radius: 5px;
  386. }
  387. ChartsAndCamerasWnd QWidget#Checkwidget
  388. {
  389. border-radius: 6px;
  390. border: 1px solid #BABBDC;
  391. }
  392. ChartsAndCamerasWnd QCheckBox {
  393. border: 0px solid #FFFFFF;
  394. padding: 4px;
  395. spacing: 18px;
  396. color: #FFFFFF;
  397. }
  398. ChartsAndCamerasWnd QCheckBox::indicator{
  399. border: 1px solid #BABBDC;
  400. width: 12px;
  401. height: 12px;
  402. border-radius: 2px;
  403. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.01 #FFFFFF, stop: 1 #F2F2FA);
  404. }
  405. ChartsAndCamerasWnd QCheckBox::indicator:checked {
  406. image: url(:/images/check_selected.png);
  407. }
  408. ChartsAndCamerasWnd QLabel#GreenDiamond
  409. {
  410. image: url(:/images/Participation display/GreenDiamond.png);
  411. }
  412. ChartsAndCamerasWnd QLabel#RedDiamond
  413. {
  414. image: url(:/images/Participation display/RedDiamond.png);
  415. }
  416. ChartsAndCamerasWnd QLabel#BlueDiamond
  417. {
  418. image: url(:/images/Participation display/BlueDiamond.png);
  419. }
  420. ChartsAndCamerasWnd QLabel#YellowDiamond
  421. {
  422. image: url(:/images/Participation display/YellowDiamond.png);
  423. }
  424. ChartsAndCamerasWnd QLabel#BlackDiamond
  425. {
  426. image: url(:/images/Participation display/BlackDiamond.png);
  427. }
  428. ChartsAndCamerasWnd QLabel#WhiteVerticalBar
  429. {
  430. image: url(:/images/Participation display/White vertical bars.png);
  431. }
  432. ChartsAndCamerasWnd QLabel#RedHorizontalLine
  433. {
  434. image: url(:/images/Participation display/Red horizontal line.png);
  435. }
  436. ChartsAndCamerasWnd QLabel#BlueHorizontalLine
  437. {
  438. image: url(:/images/Participation display/Blue horizontal line.png);
  439. }
  440. ChartsAndCamerasWnd QLabel#BlueVerticalBar
  441. {
  442. image: url(:/images/Participation display/Blue vertical bars.png);
  443. }
  444. ChartsAndCamerasWnd QLabel#GreenVerticalBar
  445. {
  446. image: url(:/images/Participation display/Green vertical bars.png);
  447. }
  448. ChartsAndCamerasWnd QLabel#PurpleVerticalBar
  449. {
  450. image: url(:/images/Participation display/Purple vertical bars.png);
  451. }
  452. /* ControlOperationPage 类的样式封装 */
  453. ControlOperationPage QHBoxLayout#horizontalLayout_2
  454. {
  455. border-radius: 6px;
  456. background: #4E53B8;
  457. }
  458. ControlOperationPage QHBoxLayout#horizontalLayout_2 QPushButton
  459. {
  460. border-radius: 6px;
  461. background: #4E53B8;
  462. border:none;
  463. }
  464. /* 悬停时的样式 */
  465. ControlOperationPage QHBoxLayout#horizontalLayout_2 QPushButton:hover
  466. {
  467. background: #A6AFFF; /* 悬停时的背景颜色 */
  468. }
  469. /* 点击时的样式 */
  470. ControlOperationPage QHBoxLayout#horizontalLayout_2 QPushButton:pressed
  471. {
  472. background: #808FFF; /* 点击时的背景颜色 */
  473. }
  474. ControlOperationPage QPushButton#LiveButton
  475. {
  476. color: #FFFFFF;
  477. border-radius: 6px;
  478. background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #949FE8,stop:1 #2D309B);
  479. }
  480. ControlOperationPage QPushButton#ZoomUpButton
  481. {
  482. image: url(:/images/deep/zoom up.png);
  483. border-radius: 6px;
  484. background: #4E53B8;
  485. border: none;
  486. }
  487. ControlOperationPage QPushButton#ZoomOutButton
  488. {
  489. image: url(:/images/deep/zoom out.png);
  490. border-radius: 6px;
  491. background: #4E53B8;
  492. border: none;
  493. }
  494. ControlOperationPage QPushButton#RulerButton
  495. {
  496. image: url(:/images/deep/ruler.png);
  497. border-radius: 6px;
  498. background: #4E53B8;
  499. border: none;
  500. }
  501. ControlOperationPage QPushButton#PenButton
  502. {
  503. image: url(:/images/deep/pen.png);
  504. border-radius: 6px;
  505. background: #4E53B8;
  506. border: none;
  507. }
  508. ControlOperationPage QPushButton#switchJoystickBut
  509. {
  510. border-radius: 6px;
  511. background: #4E53B8;
  512. border: none;
  513. }
  514. ControlOperationPage QPushButton#switchJoystickBut:pressed,
  515. ControlOperationPage QPushButton#PenButton:pressed,
  516. ControlOperationPage QPushButton#RulerButton:pressed,
  517. ControlOperationPage QPushButton#ZoomOutButton:pressed,
  518. ControlOperationPage QPushButton#ZoomUpButton:pressed,
  519. ControlOperationPage QPushButton#switchJoystickBut:pressed
  520. {
  521. background: #E17D07; /* 点击时的背景颜色 */
  522. }
  523. ControlOperationPage QPushButton#PenButton:checked,
  524. ControlOperationPage QPushButton#RulerButton:checked{
  525. background: #E17D07;
  526. }
  527. ControlOperationPage QPushButton#PenButton:disabled{
  528. background: #7276AA;
  529. image: url(:/images/forbid_pen.png);
  530. }
  531. ControlOperationPage QPushButton#RulerButton:disabled{
  532. background: #7276AA;
  533. image: url(:/images/forbid_ruler.png);
  534. }
  535. ControlOperationPage QPushButton#switchJoystickBut:hover,
  536. ControlOperationPage QPushButton#PenButton:hover,
  537. ControlOperationPage QPushButton#RulerButton:hover,
  538. ControlOperationPage QPushButton#ZoomOutButton:hover,
  539. ControlOperationPage QPushButton#ZoomUpButton:hover,
  540. ControlOperationPage QPushButton#switchJoystickBut:hover
  541. {
  542. background: #E17D07; /* 悬停时的背景颜色 */
  543. }
  544. ControlOperationPage QLabel#label_Percentage
  545. {
  546. color: #CBD0FF;
  547. border-radius: 6px;
  548. background: #4E53B8;
  549. border: none;
  550. }
  551. ControlOperationPage QComboBox
  552. {
  553. border:1px solid #6D6FB6;
  554. border-radius:6px;
  555. background: #4C4FA6;
  556. color: #FFFFFF;
  557. }
  558. ControlOperationPage QComboBox QAbstractItemView
  559. {
  560. background-color: #4C4FA6; /* 设置下拉列表的背景颜色 */
  561. color: black; /* 设置下拉列表的字体颜色为白色 */
  562. selection-background-color: #666699; /* 可选:设置选中项的背景颜色 */
  563. selection-color: white; /* 可选:设置选中项的字体颜色 */
  564. }
  565. ControlOperationPage QComboBox::down-arrow
  566. {
  567. image: url(:/images/drop.png);
  568. width: 30px;
  569. height:30px;
  570. }
  571. ControlOperationPage QComboBox::drop-down
  572. {
  573. width:20px;
  574. border:none;
  575. padding-right:5px;
  576. }
  577. ControlOperationPage QWidget#BackGround
  578. {
  579. background: #FFFFFF;
  580. border: 1px solid #BABBDC;
  581. border-radius: 0px;
  582. }
  583. /* LightJoystickSwitchPage */
  584. LightJoystickSwitchPage{
  585. background: #D6D8ED;
  586. }
  587. LightJoystickSwitchPage QTabWidget#switchTabWidget
  588. {
  589. border-radius: 10px;
  590. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F1F4FD, stop: 1 #E5E4F6);
  591. }
  592. LightJoystickSwitchPage QTabWidget#switchTabWidget QWidget,
  593. LightJoystickSwitchPage QTabWidget#switchTabWidget QWidget#GreenLightTab QWidget,
  594. LightJoystickSwitchPage QTabWidget#switchTabWidget QWidget#JoystickTab QWidget
  595. {
  596. background: #D6D8ED;
  597. }
  598. LightJoystickSwitchPage QSlider#RedLightverticalSlider::handle:vertical
  599. {
  600. border-image: url(:/images/LightGroup/red.png);
  601. height: 6px;
  602. margin: 0px -5px 0px -5px;
  603. border-radius: 4px;
  604. }
  605. LightJoystickSwitchPage QSlider#GreenLightverticalSlider::handle:vertical
  606. {
  607. border-image: url(:/images/LightGroup/green.png);
  608. height: 6px;
  609. margin: 0px -5px 0px -5px;
  610. border-radius: 4px;
  611. }
  612. LightJoystickSwitchPage QSlider#BlueLightverticalSlider::handle:vertical
  613. {
  614. border-image: url(:/images/LightGroup/blue.png);
  615. height: 6px;
  616. margin: 0px -5px 0px -5px;
  617. border-radius: 4px;
  618. }
  619. LightJoystickSwitchPage QSlider#DotLightverticalSlider::handle:vertical
  620. {
  621. border-image: url(:/images/LightGroup/yellow.png);
  622. height: 6px;
  623. margin: 0px -5px 0px -5px;
  624. border-radius: 4px;
  625. }
  626. /* 为垂直滑块设置样式 */
  627. LightJoystickSwitchPage QSlider#RedLightverticalSlider::groove:vertical
  628. {
  629. height: 56px;
  630. width: 3px;
  631. background: red;
  632. }
  633. /* 为垂直滑块设置样式 */
  634. LightJoystickSwitchPage QSlider#GreenLightverticalSlider::groove:vertical
  635. {
  636. height: 56px;
  637. width: 3px;
  638. background: green;
  639. }
  640. /* 为垂直滑块设置样式 */
  641. LightJoystickSwitchPage QSlider#BlueLightverticalSlider::groove:vertical
  642. {
  643. height: 56px;
  644. width: 3px;
  645. background: blue;
  646. }
  647. /* 为垂直滑块设置样式 */
  648. LightJoystickSwitchPage QSlider#DotLightverticalSlider::groove:vertical
  649. {
  650. height: 56px;
  651. width: 3px;
  652. background: yellow;
  653. }
  654. LightJoystickSwitchPage QProgressBar
  655. {
  656. border: 0.5px solid grey;
  657. border-radius: 5px;
  658. background-color: transparent;
  659. }
  660. LightJoystickSwitchPage QProgressBar#RedLightprogressBar::chunk
  661. {
  662. border-radius: 3px;
  663. background-color: red;
  664. height: 1px;
  665. }
  666. LightJoystickSwitchPage QProgressBar#GreenLightprogressBar::chunk
  667. {
  668. border-radius: 3px;
  669. background-color: Green;
  670. height: 1px;
  671. }
  672. LightJoystickSwitchPage QProgressBar#BlueLightprogressBar::chunk
  673. {
  674. border-radius: 3px;
  675. background-color: Blue;
  676. height: 1px;
  677. }
  678. LightJoystickSwitchPage QProgressBar#DotLightprogressBar::chunk
  679. {
  680. border-radius: 3px;
  681. background-color: yellow;
  682. height: 1px;
  683. }
  684. LightJoystickSwitchPage QTabWidget#switchTabWidget QLineEdit
  685. {
  686. border-radius: 6px;
  687. border: 1px solid #BABBDC;
  688. }
  689. DbTreeViewManager QFrame
  690. {
  691. background-color: #C7CAEB;
  692. }
  693. DbTreeViewManager QLabel
  694. {
  695. color: white;
  696. }
  697. QWidget#NavigationWidget QLabel {
  698. color: white;
  699. }
  700. /* 设置分支图标 */
  701. DbTreeViewManager QTreeView::branch:closed:has-children {
  702. border-image: none;
  703. image: url(:/images/home_add.png);
  704. }
  705. DbTreeViewManager QTreeView::branch:open:has-children {
  706. border-image: none;
  707. image: url(:/images/home_minus.png);
  708. }
  709. /* 设置多选框 */
  710. DbTreeViewManager QTreeView::indicator:unchecked {
  711. image: url(:/images/home_NotSelecte.png);
  712. }
  713. DbTreeViewManager QTreeView::indicator:checked {
  714. image: url(:/images/home_selected.png);
  715. }
  716. /* 背景透明,行间距 */
  717. DbTreeViewManager QTreeView {
  718. color: white;
  719. background: transparent;
  720. border: none;
  721. }
  722. /* 设置项目选中的背景色 */
  723. DbTreeViewManager QTreeView::item:selected {
  724. background-color: #A9B4FF;
  725. }
  726. /* 设置项目的行间距 */
  727. DbTreeViewManager QTreeView::item {
  728. padding-top: 5px; /* 上边距 */
  729. padding-bottom: 5px; /* 下边距 */
  730. }
  731. DbTreeViewManager {
  732. color: white;
  733. }
  734. DbTreeViewManager QFrame
  735. {
  736. background-color: #A9B4FF;
  737. }
  738. /* 设置分支图标 */
  739. DbTreeViewManager QTreeView::branch:closed:has-children {
  740. border-image: none;
  741. image: url(:/images/home_add.png);
  742. }
  743. DbTreeViewManager QTreeView::branch:open:has-children {
  744. border-image: none;
  745. image: url(:/images/home_minus.png);
  746. }
  747. /* 设置多选框 */
  748. DbTreeViewManager QTreeView::indicator:unchecked {
  749. image: url(:/images/home_NotSelecte.png);
  750. }
  751. DbTreeViewManager QTreeView::indicator:checked {
  752. image: url(:/images/home_selected.png);
  753. }
  754. /* 背景透明,行间距 */
  755. DbTreeViewManager QTreeView {
  756. background: transparent;
  757. border: none;
  758. }
  759. /* 设置项目选中的背景色 */
  760. DbTreeViewManager QTreeView::item:selected {
  761. background-color: #A9B4FF;
  762. }
  763. /* 设置项目的行间距 */
  764. DbTreeViewManager QTreeView::item {
  765. padding-top: 5px; /* 上边距 */
  766. padding-bottom: 5px; /* 下边距 */
  767. }
  768. DbTreeViewManager QPushButton[type="menu"] {
  769. position: absolute;
  770. border-radius: 6px;
  771. opacity: 1;
  772. background: #A9B4FF;
  773. border: 1px solid #A9B4FF;
  774. }
  775. DbTreeViewManager QPushButton[type="menu"]:hover {
  776. background-color: #5F80FF; /* 鼠标悬停效果 */
  777. }
  778. DbTreeViewManager QWidget#m_thirdLevelFieldWnd
  779. {
  780. background-color: transparent;
  781. }
  782. QWidget#thirdLevelFieldWnd QLineEdit {
  783. background: #A9B4FF;
  784. border: 1px solid #A9B4FF;
  785. border-radius: 6px;
  786. padding: 2px 5px;
  787. }
  788. QWidget#thirdLevelFieldWnd QLineEdit:disabled {
  789. background: #90A8FF;
  790. }
  791. QWidget#thirdLevelFieldWnd QLabel {
  792. font-size: 14px;
  793. color: white;
  794. }
  795. QWidget#thirdLevelFieldWnd QLabel:disabled {
  796. color: blue;
  797. }
  798. QWidget#thirdLevelFieldWnd QPushButton[type="default"] {
  799. background: #A9B4FF;
  800. border: 1px solid #A9B4FF;
  801. border-radius: 5px;
  802. }
  803. QWidget#thirdLevelFieldWnd QPushButton[type="default"]:hover {
  804. background-color: #5F80FF;
  805. }
  806. QWidget#thirdLevelFieldWnd QPushButton[type="default"]:disabled {
  807. background-color: #90A8FF;
  808. }
  809. QWidget#thirdLevelFieldWnd QCheckBox[type="checkbox"]::indicator {
  810. width: 20px;
  811. height: 20px;
  812. }
  813. QWidget#thirdLevelFieldWnd QCheckBox[type="checkbox"]::indicator:unchecked {
  814. background-color: #A9B4FF;
  815. border: 1px solid #A9B4FF;
  816. border-radius: 2px;
  817. }
  818. QWidget#thirdLevelFieldWnd QCheckBox[type="checkbox"]::indicator:checked {
  819. image: url(:/images/three_Selecte.png);
  820. }
  821. QWidget#thirdLevelFieldWnd QCheckBox[type="checkbox"] {
  822. spacing: 0px;
  823. }
  824. QWidget#thirdLevelFieldWnd QCheckBox[type="checkbox"]::indicator:disabled {
  825. background-color: #90A8FF;
  826. }
  827. QWidget#thirdLevelFieldWnd QComboBox {
  828. background: #A9B4FF;
  829. border: 1px solid #A9B4FF;
  830. border-radius: 6px;
  831. padding: 2px 5px;
  832. }
  833. QWidget#thirdLevelFieldWnd QComboBox::drop-down {
  834. width: 20px;
  835. }
  836. QWidget#thirdLevelFieldWnd QTimeEdit {
  837. background: #A9B4FF;
  838. border: 1px solid #A9B4FF;
  839. border-radius: 6px;
  840. padding: 2px 5px;
  841. }
  842. QWidget#thirdLevelFieldWnd QCheckBox[type="switch"]::indicator {
  843. width: 30px;
  844. height: 30px;
  845. }
  846. QWidget#thirdLevelFieldWnd QCheckBox[type="switch"]::indicator:unchecked {
  847. background-color: #A9B4FF;
  848. border-radius: 6px;
  849. }
  850. QWidget#thirdLevelFieldWnd QCheckBox[type="switch"]::indicator:checked {
  851. background-color: #5F80FF;
  852. border-radius: 6px;
  853. }
  854. QWidget#thirdLevelFieldWnd QCheckBox[type="switch"]::indicator:disabled {
  855. background-color: #90A8FF;
  856. }
  857. QWidget#thirdLevelFieldWnd QLineEdit#comboInput {
  858. background: #A9B4FF;
  859. border: 1px solid #A9B4FF;
  860. border-radius: 5px;
  861. padding: 2px 5px;
  862. }
  863. OriginalWnd QPushButton[type="left"] {
  864. position: absolute;
  865. border-radius: 6px;
  866. opacity: 1;
  867. background: #CBD0FF;
  868. border: none;
  869. }
  870. OriginalWnd QPushButton[type="left"]:hover {
  871. background-color: #A9B4FF; /* 鼠标悬停效果 */
  872. }
  873. OriginalWnd QLabel[type="text"] {
  874. background: transparent;
  875. font-family: "思源黑体";
  876. font-size: 14px;
  877. font-weight: 500;
  878. color: #4E51CE;
  879. }
  880. OriginalWnd QLabel[type="f"] {
  881. background-color: transparent;
  882. color: #2A7ED8;
  883. font-size: 12px;
  884. font-weight: bold;
  885. }
  886. QWidget#thirdLevelFieldWnd QPushButton[type="save"] {
  887. background: #A9B4FF;
  888. border: 1px solid #A9B4FF;
  889. border-radius: 5px;
  890. }
  891. QWidget#thirdLevelFieldWnd QPushButton[type="save"]:hover {
  892. background-color: #5F80FF;
  893. }
  894. Group QComboBox
  895. {
  896. border:1px solid #4C4FA6;
  897. border-radius:6px;
  898. background-color: #4C4FA6;
  899. color: #FFFFFF;
  900. }
  901. Group QComboBox QAbstractItemView
  902. {
  903. background-color: #4C4FA6; /* 设置下拉列表的背景颜色 */
  904. color: black; /* 设置下拉列表的字体颜色为白色 */
  905. selection-background-color: #666699; /* 可选:设置选中项的背景颜色 */
  906. selection-color: white; /* 可选:设置选中项的字体颜色 */
  907. }
  908. Group QComboBox::down-arrow
  909. {
  910. image: url(:/images/drop.png);
  911. width: 30px;
  912. height:30px;
  913. }
  914. Group QComboBox::drop-down
  915. {
  916. width:20px;
  917. border:none;
  918. padding-right:5px;
  919. }