importtemplate.qss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. QWidget
  2. {
  3. font-size: 14px;
  4. color: #D2D2D2;
  5. line-height: 21px;
  6. text-align: left;
  7. font-style: normal;
  8. }
  9. QWidget#widget
  10. {
  11. background: #464649;
  12. border-radius: 8px 8px 8px 8px;
  13. }
  14. QWidget#widget_Top
  15. {
  16. background: transparent;
  17. border-top-left-radius: 8px;
  18. border-top-right-radius: 8px;
  19. border-bottom-left-radius: 0px;
  20. border-bottom-right-radius: 0px;
  21. border-bottom: 1px solid rgba(255,255,255,0.15);
  22. }
  23. QLabel#label_title
  24. {
  25. font-weight: 500;
  26. font-size: 18px;
  27. color: #D2D2D2;
  28. line-height: 24px;
  29. text-align: left;
  30. font-style: normal;
  31. text-transform: none;
  32. }
  33. QPushButton#pBtn_close
  34. {
  35. /* border-image: url(:/ICON/ICON/Dialog_close.png); */
  36. background: transparent;
  37. border-radius: 4px;
  38. qproperty-icon: url(:/ICON/ICON/Close_Dark.png);
  39. qproperty-iconSize: 20px 20px;
  40. text-align: center;
  41. }
  42. QPushButton#pBtn_close[Hover = true]
  43. {
  44. /* border-image: url(:/ICON/ICON/Dialog_close2.png); */
  45. background: transparent;
  46. border-radius: 4px;
  47. qproperty-icon: url(:/ICON/ICON/Close_pass.png);
  48. qproperty-iconSize: 20px 20px;
  49. text-align: center;
  50. border: 1px solid #438EFF;
  51. }
  52. /********* 普通方框按钮三种状态效果 *********/
  53. QPushButton#pBtn_cancel:enabled
  54. {
  55. text-align: center;
  56. color: #EBEBEB;
  57. border: 1px solid rgba(255,255,255,0.25);
  58. border-radius: 16px;
  59. background: transparent;
  60. }
  61. QPushButton#pBtn_cancel:hover
  62. {
  63. text-align: center;
  64. color: #EBEBEB;
  65. border: 1px solid rgba(255,255,255,0.25);
  66. border-radius: 16px;
  67. background: rgba(0,0,0,0.15);
  68. }
  69. /********* 带有底色按钮三种状态效果 *********/
  70. QPushButton#pBtn_ok
  71. {
  72. border-radius: 16px;
  73. text-align: center;
  74. color:white;
  75. background: #438EFF;
  76. border-radius: 16px;
  77. }
  78. QPushButton#pBtn_ok:hover
  79. {
  80. border-radius: 16px;
  81. text-align: center;
  82. color:white;
  83. background: #5F9EFF;
  84. border-radius: 16px;
  85. }
  86. /* ==========================================================
  87. * QTableWidget
  88. * ========================================================== */
  89. QTableWidget
  90. {
  91. background: transparent;
  92. padding-left: 16px;
  93. border: 0px solid #E6E9F4;
  94. text-align: left;
  95. }
  96. /* 设置标题栏,如果不生效,可能是在UI里面设置了样式表,导致冲突了 */
  97. QTableWidget QHeaderView
  98. {
  99. background: transparent;
  100. }
  101. QTableWidget QHeaderView::section
  102. {
  103. background: transparent;
  104. padding-left: 16px;
  105. font-weight: 500;
  106. font-size: 14px;
  107. color: #D2D2D2;
  108. border: 0px solid #E6E9F4;
  109. border-top: 1px solid rgba(255,255,255,0.15);
  110. border-bottom: 1px solid rgba(255,255,255,0.15);
  111. }
  112. QTableWidget::item
  113. {
  114. padding-left: 16px;
  115. padding-right: 0px;
  116. padding-top: 0px;
  117. padding-bottom: 0px;
  118. margin: 0px;
  119. text-align: left;
  120. border: 0px solid #E6E9F4;
  121. }
  122. QTableWidget::item:selected
  123. {
  124. color: #EBEBEB;
  125. background: #438EFF;
  126. }
  127. /* QCheckBox::indicator
  128. {
  129. width: 16px;
  130. height: 16px;
  131. border-radius: 4px;
  132. background: #B3C0E7;
  133. } */