selectDialog.qss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. QWidget{
  2. background: transparent;
  3. border-radius: 8px;
  4. font-family: 思源黑体R;
  5. font-weight: 400;
  6. font-size: 14px;
  7. color: #3A3F63;
  8. line-height: 21px;
  9. text-align: left;
  10. font-style: normal;
  11. }
  12. QWidget#widget
  13. {
  14. border-radius: 8px;
  15. background: #FFFFFF;
  16. }
  17. /* 分割线 */
  18. QLabel#label_line1
  19. {
  20. background: #E6E9F4;
  21. }
  22. /* 左上角标题 */
  23. QLabel#label_title
  24. {
  25. font-family: 思源黑体R;
  26. font-weight: bold;
  27. font-size: 18px;
  28. color: #3A3F63;
  29. line-height: 27px;
  30. text-align: left;
  31. font-style: normal;
  32. text-transform: uppercase;
  33. }
  34. /* 警告label */
  35. QLabel#label_warn
  36. {
  37. font-weight: 400;
  38. font-size: 14px;
  39. color: #D21F21;
  40. line-height: 21px;
  41. text-align: left;
  42. font-style: normal;
  43. }
  44. /*********** 按钮设置 ***********/
  45. QPushButton{
  46. text-align: center;
  47. font-family: 思源黑体M;
  48. font-weight: 400;
  49. font-size: 14px;
  50. line-height: 21px;
  51. }
  52. /* 关闭按钮 */
  53. QPushButton#pBtn_close{
  54. image: url(:/Standard_ICON/Dialog_close.png);
  55. }
  56. QPushButton#pBtn_close:hover
  57. {
  58. image: url(:/Standard_ICON/Dialog_close2.png);
  59. }
  60. /********* 普通方框按钮三种状态效果 *********/
  61. QPushButton#pBtn_cancel:enabled,#pBtn_getChannel:enabled
  62. {
  63. background: #FFFFFF;
  64. border-radius: 16px;
  65. border: 1px solid #E6E9F4;
  66. color: #3A3F63;
  67. }
  68. QPushButton#pBtn_cancel:hover,#pBtn_getChannel:hover
  69. {
  70. background: #FFFFFF;
  71. border-radius: 16px;
  72. border: 1px solid #4458FE;
  73. color: #4458FE;
  74. }
  75. /* 普通方框按钮 */
  76. QPushButton#pBtn_getChannel:enabled
  77. {
  78. background: #FFFFFF;
  79. border-radius: 4px;
  80. border: 1px solid #E6E9F4;
  81. color: #3A3F63;
  82. }
  83. QPushButton#pBtn_getChannel:hover
  84. {
  85. background: #FFFFFF;
  86. border-radius: 4px;
  87. border: 1px solid #4458FE;
  88. color: #4458FE;
  89. }
  90. /********* 带有底色按钮三种状态效果 *********/
  91. QPushButton#pBtn_ok
  92. {
  93. color:white;
  94. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF);
  95. border-radius: 16px;
  96. }
  97. QPushButton#pBtn_ok:hover
  98. {
  99. color:white;
  100. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF);
  101. border-radius: 16px;
  102. }
  103. QLabel#label_devWarn,QLabel#label_timeWarn,QLabel#label_actionWarn
  104. {
  105. font-weight: 400;
  106. font-size: 14px;
  107. color: #D21F21;
  108. line-height: 21px;
  109. text-align: left;
  110. font-style: normal;
  111. }
  112. /********************************* QComboBox *****************************/
  113. QComboBox
  114. {
  115. border: 1px solid #E6E9F4;
  116. border-radius: 4px;
  117. background:#FFFFFF;
  118. padding-left: 12px;
  119. }
  120. QComboBox:disabled
  121. {
  122. background: rgba(0,0,0,0.04);
  123. border-radius: 4px;
  124. border: 1px solid #E6E9F4;
  125. padding-left: 12px;
  126. }
  127. QComboBox[Warn=true]
  128. {
  129. border: 1px solid #D21F21;
  130. border-radius: 4px;
  131. background:#FFFFFF;
  132. padding-left: 12px;
  133. }
  134. QComboBox[hover]
  135. {
  136. border: 1px solid #4458FE;
  137. border-radius: 4px;
  138. background:#FFFFFF;
  139. }
  140. /* 下拉箭头所在的位置方框 */
  141. QComboBox::drop-down
  142. {
  143. width: 24px;
  144. border: none;
  145. }
  146. /* 下拉箭头图标 */
  147. QComboBox::down-arrow
  148. {
  149. image: url(:/Standard_ICON/DownArrow.png);
  150. height:16px;
  151. width:16px;
  152. }
  153. /* 下拉条样式,就是view */
  154. QComboBox QAbstractItemView
  155. {
  156. outline:0px solid gray;
  157. font-size:14px;
  158. background:#ffffff;
  159. color: #3A3F63;
  160. margin: 4px;
  161. border-radius: 2px;
  162. border: none;
  163. }
  164. /* 使下面两句生效,需要加上如下语句 */
  165. /* m_comBoxDev->setView(new QListView()); */
  166. QComboBox QAbstractItemView::item
  167. {
  168. font-size:14px;
  169. border-radius:2px;
  170. color: #3A3F63;
  171. padding-left: 8px;
  172. height: 30px;
  173. }
  174. QComboBox QAbstractItemView::item:selected
  175. {
  176. background: #EEF2FF;
  177. font-size:14px;
  178. color: #3a3f63;
  179. height: 30px;
  180. padding-left: 8px;
  181. }
  182. /******** combobox 滚动条 *********/
  183. QComboBox QScrollBar::vertical{ /*主体部分*/
  184. width:8px;
  185. background:transparent;
  186. border:none;
  187. border-radius:5px;
  188. }
  189. QComboBox QScrollBar::handle::vertical{ /*滑块主体*/
  190. width: 8px;
  191. background: #E2E2E2;
  192. border-radius: 3px;
  193. min-width: 8px;
  194. }
  195. QComboBox QScrollBar::handle::vertical:hover{
  196. background:transparent;
  197. }
  198. QComboBox QScrollBar::add-line::vertical{/*上箭头*/
  199. border:none;
  200. }
  201. QComboBox QScrollBar::sub-line::vertical{/*下箭头*/
  202. border:none;
  203. }
  204. /***************** QRadioButton *****************/
  205. QRadioButton::indicator
  206. {
  207. width: 16px;
  208. height: 16px;
  209. }
  210. /*
  211. QRadioButton:disabled
  212. {
  213. color: #B8B8B8;
  214. } */
  215. QRadioButton::indicator::unchecked
  216. {
  217. color: #3A3F63;
  218. image: url(:/Standard_ICON/Radio_Unchecked.png);
  219. }
  220. QRadioButton::indicator::checked
  221. {
  222. color: #3A3F63;
  223. image: url(:/Standard_ICON/Radio_Checked.png);
  224. }
  225. /****************** QLineEdit ******************/
  226. QLineEdit
  227. {
  228. border: 1px solid #E6E9F4;
  229. border-radius: 4px;
  230. background:#FFFFFF;
  231. padding-left: 12px;
  232. }