button.qss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. PushButton, ToolButton {
  2. background: rgba(255, 255, 255, 0.0605);
  3. border: 1px solid rgba(255, 255, 255, 0.053);
  4. border-top: 1px solid rgba(255, 255, 255, 0.08);
  5. border-radius: 5px;
  6. color: white;
  7. font: 14px 'Segoe UI', 'Microsoft YaHei';
  8. padding: 5px 12px 6px 12px;
  9. outline: none;
  10. }
  11. ToolButton {
  12. padding: 5px 9px 6px 8px;
  13. }
  14. PushButton[hasIcon=false] {
  15. padding: 5px 12px 6px 12px;
  16. }
  17. PushButton[hasIcon=true] {
  18. padding: 5px 12px 6px 36px;
  19. }
  20. PushButton:hover, ToolButton:hover {
  21. background: rgba(255, 255, 255, 0.0837);
  22. }
  23. PushButton:pressed, ToolButton:pressed {
  24. color: rgba(255, 255, 255, 0.786);
  25. background: rgba(255, 255, 255, 0.0326);
  26. border-top: 1px solid rgba(255, 255, 255, 0.053);
  27. }
  28. PushButton:disabled, ToolButton:disabled {
  29. color: rgba(255, 255, 255, 0.3628);
  30. background: rgba(255, 255, 255, 0.0419);
  31. border: 1px solid rgba(255, 255, 255, 0.053);
  32. border-top: 1px solid rgba(255, 255, 255, 0.053);
  33. }
  34. PrimaryPushButton {
  35. color: black;
  36. background-color: --ThemeColorPrimary;
  37. border: 1px solid --ThemeColorLight1;
  38. border-bottom: 1px solid --ThemeColorLight2;
  39. }
  40. PrimaryPushButton:hover {
  41. background-color: --ThemeColorDark1;
  42. border: 1px solid --ThemeColorLight1;
  43. border-bottom: 1px solid --ThemeColorLight2;
  44. }
  45. PrimaryPushButton:pressed {
  46. color: rgba(0, 0, 0, 0.63);
  47. background-color: --ThemeColorDark2;
  48. border: 1px solid --ThemeColorDark2;
  49. }
  50. PrimaryPushButton:disabled {
  51. color: rgba(255, 255, 255, 0.43);
  52. background-color: rgb(52, 52, 52);
  53. border: 1px solid rgb(52, 52, 52);
  54. }
  55. HyperlinkButton {
  56. font: 14px 'Segoe UI', 'Microsoft YaHei';
  57. padding: 5px 12px 6px 12px;
  58. color: --ThemeColorPrimary;
  59. border: none;
  60. border-radius: 6px;
  61. background-color: transparent;
  62. }
  63. HyperlinkButton:hover {
  64. background-color: rgba(255, 255, 255, 10);
  65. }
  66. HyperlinkButton:pressed {
  67. background-color: rgba(255, 255, 255, 7);
  68. }
  69. HyperlinkButton:disabled {
  70. color: rgba(255, 255, 255, 0.43);
  71. background-color: transparent;
  72. }
  73. RadioButton {
  74. min-height: 24px;
  75. max-height: 24px;
  76. background-color: transparent;
  77. font: 14px 'Segoe UI', 'Microsoft YaHei';
  78. color: white;
  79. }
  80. RadioButton::indicator {
  81. width: 18px;
  82. height: 18px;
  83. border-radius: 11px;
  84. border: 2px solid #848484;
  85. background-color: transparent;
  86. margin-right: 4px;
  87. }
  88. RadioButton::indicator:hover {
  89. background-color: rgba(255, 255, 255, 16);
  90. }
  91. RadioButton::indicator:pressed {
  92. border: 2px solid #434343;
  93. background-color: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5,
  94. stop:0 rgb(0, 0, 0),
  95. stop:0.5 rgb(0, 0, 0),
  96. stop:0.6 rgb(43, 42, 42),
  97. stop:1 rgb(43, 42, 42));
  98. }
  99. RadioButton::indicator:checked {
  100. height: 22px;
  101. width: 22px;
  102. border: none;
  103. border-radius: 11px;
  104. background-color: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5,
  105. stop:0 rgb(0, 0, 0),
  106. stop:0.5 rgb(0, 0, 0),
  107. stop:0.6 --ThemeColorPrimary,
  108. stop:1 --ThemeColorPrimary);
  109. }
  110. RadioButton::indicator:checked:hover {
  111. background-color: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5,
  112. stop:0 rgb(0, 0, 0),
  113. stop:0.6 rgb(0, 0, 0),
  114. stop:0.7 --ThemeColorPrimary,
  115. stop:1 --ThemeColorPrimary);
  116. }
  117. RadioButton::indicator:checked:pressed {
  118. background-color: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5,
  119. stop:0 rgb(0, 0, 0),
  120. stop:0.5 rgb(0, 0, 0),
  121. stop:0.6 --ThemeColorPrimary,
  122. stop:1 --ThemeColorPrimary);
  123. }
  124. RadioButton:disabled {
  125. color: rgb(150, 150, 150);
  126. }
  127. RadioButton::indicator:disabled {
  128. border: 2px solid #646464;
  129. background-color: transparent;
  130. }
  131. TransparentToolButton {
  132. background-color: transparent;
  133. border-radius: 4px;
  134. margin: 0;
  135. }
  136. TransparentToolButton:hover {
  137. background-color: rgba(255, 255, 255, 9);
  138. }
  139. TransparentToolButton:pressed {
  140. background-color: rgba(255, 255, 255, 6);
  141. }