importtemplate.qss 3.0 KB

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