AddNormalItem.qss 4.5 KB

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