light.qss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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. border-radius: 10px;
  11. image: url(:/images/login.png);
  12. }
  13. Login QWidget#widget
  14. {
  15. border-radius: 20px;
  16. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6164D6, stop: 1 #6164D6); /* 第一层渐变 */
  17. }
  18. Login QPushButton
  19. {
  20. color:#FFFFFF;
  21. border-radius: 8px;
  22. background: #9294FF;
  23. }
  24. Login QLineEdit#userNameLineEdit,
  25. Login QLineEdit#passLineEdit
  26. {
  27. color:#FFFFFF;
  28. border-radius: 8px;
  29. padding-left:82px;
  30. border: 1px solid #9294FF;
  31. background: rgba(111, 113, 223, 0.2);
  32. }
  33. Login QLabel#label_user
  34. {
  35. image: url(:/images/login_user.png);
  36. }
  37. Login QLabel#label_pass
  38. {
  39. image: url(:/images/login_pass.png);
  40. }
  41. Login QFrame#line,
  42. Login QFrame#line_2
  43. {
  44. background: #9294FF;
  45. }
  46. /*主界面*/
  47. MainWnd QWidget#TabSideBar
  48. {
  49. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #EEF0F8, stop: 1 #E6E7F9);
  50. }
  51. MainWnd QWidget#centralwidget
  52. {
  53. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #E8EAFA, stop: 1 #D0D1EB);
  54. }
  55. QFrame#line,
  56. QFrame#line_3,
  57. Demo001_3 QFrame#line_2
  58. {
  59. background-color: #BABBDC;
  60. }
  61. MainWnd QWidget#TabSideBar QToolButton
  62. {
  63. color: #1D2087;
  64. font-weight: bold;
  65. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F8FBFF, stop: 1 #E7ECF3);
  66. border-radius:6px;
  67. }
  68. /*侧边栏按钮*/
  69. QWidget#TabSideBar>QToolButton::hover,QWidget#TabSideBar>QToolButton::pressed,QWidget#TabSideBar>QToolButton::checked
  70. {
  71. border:none;
  72. color:#FFFFFF;
  73. background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #949FE8,stop:1 #2D309B);
  74. }
  75. MainWnd QToolButton
  76. {
  77. padding-top: 8px;
  78. }
  79. QWidget#TabSideBar>QToolButton#tabBondBtn
  80. {
  81. qproperty-icon:url(:/images/light/home.png);
  82. }
  83. QWidget#TabSideBar>QToolButton#tabBondBtn_2
  84. {
  85. qproperty-icon:url(:/images/light/Productionn assistance.png);
  86. }
  87. QWidget#TabSideBar>QToolButton#tabBondBtn_3
  88. {
  89. qproperty-icon:url(:/images/light/Program.png);
  90. }
  91. QWidget#TabSideBar>QToolButton#tabBondBtn_4
  92. {
  93. qproperty-icon:url(:/images/light/Message.png);
  94. }
  95. QWidget#TabSideBar>QToolButton#tabBondBtn_5
  96. {
  97. qproperty-icon:url(:/images/light/Module.png);
  98. }
  99. QWidget#TabSideBar>QToolButton#tabBondBtn_6
  100. {
  101. qproperty-icon:url(:/images/light/Disposition.png);
  102. }
  103. QWidget#TabSideBar>QToolButton#tabBondBtn_7
  104. {
  105. qproperty-icon:url(:/images/light/Diagnosis.png);
  106. }
  107. QWidget#TabSideBar>QToolButton#tabBondBtn_8
  108. {
  109. qproperty-icon:url(:/images/light/System.png);
  110. }
  111. QWidget#TabSideBar>QToolButton#tabBondBtn_9
  112. {
  113. qproperty-icon:url(:/images/light/Help.png);
  114. }
  115. /*顶部*/
  116. QWidget#Toptitlebar
  117. {
  118. border-radius: 6px;
  119. background: #5C63BE;
  120. color: #FFFFFF;
  121. }
  122. QWidget#Toptitlebar QLable#label_4
  123. {
  124. color: #FFFFFF;
  125. }
  126. OriginalWnd QWidget#Toptitlebar QPushButton#pushButton
  127. {
  128. color: #FFFFFF;
  129. border-radius: 4px;
  130. background: #4AA2FF;
  131. }
  132. QWidget#Toptitlebar QPushButton#pushButton_2
  133. {
  134. background-color: transparent;
  135. image: url(:/images/two.png);
  136. }
  137. QWidget#Toptitlebar QPushButton#pushButton_3
  138. {
  139. background-color: transparent;
  140. image: url(:/images/one.png);
  141. }
  142. /*初始界面*/
  143. OriginalWnd QWidget#widget_2,
  144. OriginalWnd QWidget#widget
  145. {
  146. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F1F4FD, stop: 1 #E5E4F6);
  147. border-radius: 10px;
  148. }
  149. OriginalWnd QWidget#widget QToolButton#toolButton
  150. {
  151. border-radius: 6px;
  152. background: #F02962;
  153. color: #FFFFFF;
  154. padding-bottom: 13px;
  155. padding-left: 28px;
  156. }
  157. OriginalWnd QWidget#widget QToolButton#toolButton_2
  158. {
  159. border-radius: 6px;
  160. background: #4AB832;
  161. color: #FFFFFF;
  162. padding-bottom: 13px;
  163. padding-left: 28px;
  164. }
  165. OriginalWnd QWidget#widget QPushButton#pushButton_4
  166. {
  167. border-radius: 6px;
  168. background: #CBD0FF;
  169. image: url(:/images/light/Demo001_1.png);
  170. }
  171. OriginalWnd QWidget#widget QPushButton#pushButton_5
  172. {
  173. border-radius: 6px;
  174. background: #CBD0FF;
  175. image: url(:/images/light/Demo001_2.png);
  176. }
  177. OriginalWnd QWidget#widget QPushButton#pushButton_6
  178. {
  179. border-radius: 6px;
  180. background: #CBD0FF;
  181. image: url(:/images/light/Demo001_3.png);
  182. }
  183. /* Demo001_3 */
  184. QComboBox
  185. {
  186. border:1px solid #BABBDC;
  187. border-radius:6px;
  188. background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #FFFFFF,stop:1 #F2F2FA);
  189. }
  190. QComboBox::down-arrow
  191. {
  192. image: url(:/images/drop.png);
  193. width: 30px;
  194. height:30px;
  195. }
  196. QComboBox::drop-down
  197. {
  198. width:20px;
  199. border:none;
  200. padding-right:5px;
  201. }
  202. Demo001_3 QWidget#centralwidget
  203. {
  204. border-radius: 10px;
  205. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F1F4FD, stop: 1 #E5E4F6);
  206. }
  207. Demo001_3 QPushButton#pushButton,
  208. Demo001_3 QPushButton#pushButton_2
  209. {
  210. image: url(:/images/unknown_1.png);
  211. border-radius: 6px;
  212. background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #949FE8,stop:1 #2D309B);
  213. }
  214. Demo001_3 QWidget#widget_6,
  215. Demo001_3 QWidget#widget_7,
  216. Demo001_3 QWidget#widget_8
  217. {
  218. background: #D6D8ED;
  219. }
  220. Demo001_3 QLineEdit
  221. {
  222. border-radius: 6px;
  223. border: 1px solid #BABBDC;
  224. }
  225. Demo001_3 QWidget#widget_2,
  226. Demo001_3 QWidget#widget
  227. {
  228. border-radius: 0px;
  229. }
  230. /* 为垂直滑块设置样式 */
  231. QSlider::groove:vertical {
  232. height: 56px;
  233. width: 3px;
  234. background: rgba(78, 81, 206, 0.25);
  235. }
  236. QSlider::sub-page:vertical {
  237. height: 56px;
  238. width: 3px;
  239. background: rgba(78, 81, 206, 0.25);
  240. }
  241. QSlider::handle:vertical {
  242. border-image: url(:/images/slider.png);
  243. height: 6px;
  244. margin: 0px -5px 0px -5px;
  245. border-radius: 4px;
  246. }