selectDialog.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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[Warn=true]
  121. {
  122. border: 1px solid #D21F21;
  123. border-radius: 4px;
  124. background:#FFFFFF;
  125. padding-left: 12px;
  126. }
  127. QComboBox[hover]
  128. {
  129. border: 1px solid #4458FE;
  130. border-radius: 4px;
  131. background:#FFFFFF;
  132. }
  133. /* 下拉箭头所在的位置方框 */
  134. QComboBox::drop-down
  135. {
  136. width: 24px;
  137. border: none;
  138. }
  139. /* 下拉箭头图标 */
  140. QComboBox::down-arrow
  141. {
  142. image: url(:/Standard_ICON/DownArrow.png);
  143. height:16px;
  144. width:16px;
  145. }
  146. /* 下拉条样式,就是view */
  147. QComboBox QAbstractItemView
  148. {
  149. outline:0px solid gray;
  150. font-size:14px;
  151. background:#ffffff;
  152. color: #3A3F63;
  153. margin: 4px;
  154. border-radius: 2px;
  155. border: none;
  156. }
  157. /* 使下面两句生效,需要加上如下语句 */
  158. /* m_comBoxDev->setView(new QListView()); */
  159. QComboBox QAbstractItemView::item
  160. {
  161. font-size:14px;
  162. border-radius:2px;
  163. color: #3A3F63;
  164. padding-left: 8px;
  165. height: 30px;
  166. }
  167. QComboBox QAbstractItemView::item:selected
  168. {
  169. background: #EEF2FF;
  170. font-size:14px;
  171. color: #3a3f63;
  172. height: 30px;
  173. padding-left: 8px;
  174. }
  175. /******** combobox 滚动条 *********/
  176. QComboBox QScrollBar::vertical{ /*主体部分*/
  177. width:8px;
  178. background:transparent;
  179. border:none;
  180. border-radius:5px;
  181. }
  182. QComboBox QScrollBar::handle::vertical{ /*滑块主体*/
  183. width: 8px;
  184. background: #E2E2E2;
  185. border-radius: 3px;
  186. min-width: 8px;
  187. }
  188. QComboBox QScrollBar::handle::vertical:hover{
  189. background:transparent;
  190. }
  191. QComboBox QScrollBar::add-line::vertical{/*上箭头*/
  192. border:none;
  193. }
  194. QComboBox QScrollBar::sub-line::vertical{/*下箭头*/
  195. border:none;
  196. }