paramconfig.qss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. QWidget
  2. {
  3. font-family: 思源黑体M;
  4. text-align: left;
  5. font-style: normal;
  6. }
  7. QDialog#ParamConfig
  8. {
  9. background: transparent;
  10. }
  11. QWidget#widget
  12. {
  13. background: #2E2D31;
  14. /* box-shadow: 0px 10px 14px 6px rgba(0,0,0,0.2); */
  15. border-radius: 10px;
  16. border: 1px solid #595959;
  17. }
  18. /* 设置顶栏背景 */
  19. QWidget#widget_top
  20. {
  21. /* background: #6C697C; 使用这个颜色不正常,使用下面的就正常了 */
  22. background: rgba(108,105,124,0.2);
  23. border-top-left-radius: 10px;
  24. border-top-right-radius: 10px;
  25. /* opacity: 0.2; */
  26. }
  27. /********************** 设置按钮 ***********************/
  28. /* 设置关闭按钮 */
  29. QPushButton#pBtn_close
  30. {
  31. background: transparent;
  32. border: none;
  33. border-image: url(:/image/Resource/image/close_dark/close_default.png);
  34. /* background-image: url(:/Standard_ICON/close_dark/close_default.png); */
  35. }
  36. QPushButton#pBtn_close:hover
  37. {
  38. /* background-image: url(:/Standard_ICON/close_dark/close_pass.png); */
  39. border-image: url(:/image/Resource/image/close_dark/close_pass.png);
  40. }
  41. /* 设置确定按钮 */
  42. QPushButton#pBtn_save
  43. {
  44. font-size:14px;
  45. font-weight: 500;
  46. text-align: center;
  47. color: #f3f7ff;
  48. line-height: 24px;
  49. border: 1px solid #000000;
  50. border-radius: 4px;
  51. background: #0058b1;
  52. }
  53. QPushButton#pBtn_save::hover
  54. {
  55. font-size:14px;
  56. font-weight: 500;
  57. text-align: center;
  58. color: #f3f7ff;
  59. line-height: 24px;
  60. border: 1px solid #000000;
  61. border-radius: 4px;
  62. background: #1a69b8;
  63. }
  64. QPushButton#pBtn_cancel
  65. {
  66. font-size:14px;
  67. font-weight: 500;
  68. text-align: center;
  69. color: #f3f7ff;
  70. line-height: 24px;
  71. border: 1px solid #000000;
  72. border-radius: 4px;
  73. background: #3e3d42;
  74. }
  75. QPushButton#pBtn_cancel::hover
  76. {
  77. font-size:14px;
  78. font-weight: 500;
  79. text-align: center;
  80. color: #f3f7ff;
  81. line-height: 24px;
  82. border: 1px solid #000000;
  83. border-radius: 4px;
  84. background: #605e65;
  85. }
  86. /************************** 设置Label ************************/
  87. QLabel#label_title
  88. {
  89. font-weight: bold;
  90. font-size: 18px;
  91. color: #D2D2D2;
  92. line-height: 27px;
  93. text-align: left;
  94. font-style: normal;
  95. text-transform: uppercase;
  96. }
  97. /* 其他label字体 */
  98. QLabel
  99. {
  100. font-weight: 400;
  101. font-size: 14px;
  102. color: #D2D2D2;
  103. line-height: 21px;
  104. text-align: left;
  105. font-style: normal;
  106. }
  107. /* 设置分割线 */
  108. QLabel#label_line1, #label_line2, #label_line3
  109. {
  110. background: rgba(255,255,255,0.15);
  111. }
  112. /* 设置红色星号 */
  113. QLabel#label_x1, #label_x2
  114. {
  115. font-weight: 400;
  116. font-size: 14px;
  117. color: #D21F21;
  118. line-height: 21px;
  119. text-align: left;
  120. font-style: normal;
  121. }
  122. /***************** QComboBox下拉框 ****************/
  123. QComboBox
  124. {
  125. background: transparent;
  126. border-radius: 4px;
  127. border: 1px solid rgba(255,255,255,0.15);
  128. font-weight: 400;
  129. font-size: 14px;
  130. color: #D2D2D2;
  131. padding-left: 12px;
  132. }
  133. QComboBox:hover, QComboBox:on
  134. {
  135. border: 1px solid #438EFF;
  136. }
  137. /*下拉箭头样式*/
  138. QComboBox::down-arrow
  139. {
  140. height: 16px;
  141. width: 16px;
  142. image: url(:/image/Resource/image/DownArrow.png);
  143. }
  144. QComboBox::drop-down
  145. {
  146. background-color:transparent;
  147. padding-right:12px;
  148. }
  149. /* 下拉后,整个下拉窗体样式 */
  150. QComboBox QAbstractItemView
  151. {
  152. margin: 8px;
  153. font-size: 14px;
  154. background-color: #5C5E61;
  155. outline:0px;
  156. border-radius: 4px;
  157. }
  158. /* 下拉后,整个下拉窗体每项的样式 */
  159. QComboBox QAbstractItemView::item
  160. {
  161. border-radius: 4px;
  162. color: #D2D2D2;
  163. height: 32px;
  164. background-color: #5C5E61;
  165. font-weight: 400;
  166. font-size: 14px;
  167. padding-left: 11px;
  168. }
  169. QComboBox QAbstractItemView::item:hover
  170. {
  171. font-weight: 400;
  172. color: #FFFFFF;
  173. background-color: #438EFF;
  174. }
  175. QComboBox QAbstractItemView::item:selected
  176. {
  177. font-weight: 400;
  178. color: #FFFFFF;
  179. background-color: #438EFF;
  180. }