SettingNum.qss 3.6 KB

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