dialogbase.qss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. QWidget
  2. {
  3. font-size: 14px;
  4. color: #3A3F63;
  5. line-height: 22px;
  6. text-align: left;
  7. font-style: normal;
  8. text-transform: none;
  9. }
  10. QWidget#DialogBase
  11. {
  12. background: transparent;
  13. border: none;
  14. }
  15. /* 整体背景 */
  16. QWidget#widget_background
  17. {
  18. background: #FFFFFF;
  19. border-radius: 8px 8px 8px 8px;
  20. }
  21. QPushButton
  22. {
  23. color: #3A3F63;
  24. line-height: 22px;
  25. text-align: center;
  26. font-style: normal;
  27. text-transform: none;
  28. }
  29. /*===============================================================
  30. * widget_Top
  31. ================================================================*/
  32. QWidget#widget_top
  33. {
  34. border-top-left-radius: 8px;
  35. border-top-right-radius: 8px;
  36. border-bottom-left-radius: 0px;
  37. border-bottom-right-radius: 0px;
  38. border-bottom: 1px solid #E6E9F4;
  39. }
  40. QLabel#label_X1
  41. {
  42. text-align: center;
  43. color: #F53F3F;
  44. }
  45. QLabel#label_title
  46. {
  47. font-weight: 500;
  48. font-size: 18px;
  49. color: #3A3F63;
  50. line-height: 27px;
  51. text-align: left;
  52. font-style: normal;
  53. text-transform: uppercase;
  54. }
  55. /* ==========================================================
  56. * QPushButton
  57. * ========================================================== */
  58. QPushButton
  59. {
  60. font-weight: 500;
  61. font-size: 14px;
  62. text-align: center;
  63. }
  64. QPushButton#pBtn_Close
  65. {
  66. background: transparent;
  67. border-radius: 4px;
  68. qproperty-icon: url(:/icon/close.png);
  69. qproperty-iconSize: 32px 32px;
  70. }
  71. QPushButton#pBtn_Close[Hover = true]
  72. {
  73. background: transparent;
  74. border-radius: 4px;
  75. qproperty-icon: url(:/icon/close_hover.png);
  76. qproperty-iconSize: 32px 32px;
  77. border: 1px solid #4458FE;
  78. }
  79. /********* 普通椭圆按钮三种状态效果 *********/
  80. QPushButton#pBtn_Cancel
  81. {
  82. background: transparent;
  83. color: #3A3F63;
  84. border: 1px solid #E6E9F4;
  85. border-radius: 16px;
  86. }
  87. QPushButton#pBtn_Cancel:hover
  88. {
  89. background: transparent;
  90. color: #4458FE;
  91. border: 1px solid #4458FE;
  92. border-radius: 16px;
  93. }
  94. /********* 带有底色椭圆按钮三种状态效果 *********/
  95. QPushButton#pBtn_OK
  96. {
  97. color:white;
  98. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF);
  99. border-radius: 16px;
  100. }
  101. QPushButton#pBtn_OK:hover
  102. {
  103. color:white;
  104. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF);
  105. border-radius: 16px;
  106. }
  107. /********* 普通方框按钮三种状态效果 *********/
  108. /* QPushButton#pBtn_compareItem, #pBtn_restore
  109. {
  110. background: transparent;
  111. color: #3A3F63;
  112. border: 1px solid #E6E9F4;
  113. border-radius: 4px;
  114. }
  115. QPushButton#pBtn_compareItem:hover, #pBtn_restore:hover
  116. {
  117. background: transparent;
  118. color: #4458FE;
  119. border: 1px solid #4458FE;
  120. border-radius: 4px;
  121. } */
  122. /********* 带有底色方框按钮三种状态效果 *********/
  123. /* QPushButton#pBtn_addPlan
  124. {
  125. color:white;
  126. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF);
  127. border-radius: 4px;
  128. }
  129. QPushButton#pBtn_addPlan:hover
  130. {
  131. color:white;
  132. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF);
  133. border-radius: 4px;
  134. } */