color_dialog.qss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. ColorDialog,
  2. QScrollArea,
  3. QWidget {
  4. background-color: transparent;
  5. }
  6. QScrollArea {
  7. border: 1px solid transparent;
  8. border-radius: 8px;
  9. background-color: transparent;
  10. }
  11. #centerWidget {
  12. border: 1px solid rgb(58, 58, 58);
  13. border-radius: 10px;
  14. background-color: rgb(43, 43, 43);
  15. }
  16. #buttonGroup {
  17. background-color: rgb(32, 32, 32);
  18. border-top: 1px solid rgb(29, 29, 29);
  19. border-left: none;
  20. border-right: none;
  21. border-bottom: none;
  22. border-bottom-left-radius: 8px;
  23. border-bottom-right-radius: 8px;
  24. }
  25. QLabel {
  26. font: 14px 'Segoe UI', 'Microsoft YaHei';
  27. color: white;
  28. background-color: transparent;
  29. border: none;
  30. }
  31. #titleLabel {
  32. font-size: 19px;
  33. }
  34. #editLabel {
  35. font-size: 16px;
  36. }
  37. #prefixLabel {
  38. padding: 0;
  39. font-size: 14px;
  40. }
  41. QSlider:horizontal {
  42. min-width: 332px;
  43. min-height: 24px;
  44. }
  45. QSlider::groove:horizontal {
  46. height: 12px;
  47. border-radius: 6px;
  48. background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, x3:2, y3:0,
  49. stop:0 hsv(--slider-hue, --slider-saturation, 0),
  50. stop:1 hsv(--slider-hue, --slider-saturation, 255));
  51. }
  52. QSlider::handle:horizontal {
  53. border: 1px solid rgb(55, 55, 55);
  54. width: 16px;
  55. min-height: 10px;
  56. margin: -3px 0;
  57. border-radius: 9px;
  58. background-color: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5,
  59. stop:0 rgb(255, 255, 255),
  60. stop:0.55 rgb(255, 255, 255),
  61. stop:0.6 rgb(69, 69, 69),
  62. stop:1 rgb(69, 69, 69));
  63. }
  64. QSlider::groove:horizontal:disabled {
  65. background-color: rgba(0, 0, 0, 75);
  66. }
  67. QSlider::handle:horizontal:disabled {
  68. background-color: #808080;
  69. border: 6px solid #cccccc;
  70. }
  71. /* 滚动条 */
  72. QScrollBar {
  73. background: transparent;
  74. width: 4px;
  75. margin-top: 32px;
  76. padding-right: 1px;
  77. }
  78. /*隐藏上箭头*/
  79. QScrollBar::sub-line {
  80. background: transparent;
  81. }
  82. /*隐藏下箭头*/
  83. QScrollBar::add-line {
  84. background: transparent;
  85. }
  86. QScrollBar::handle {
  87. background: rgb(122, 122, 122);
  88. border: 2px solid rgb(128, 128, 128);
  89. border-radius: 1px;
  90. min-height: 32px;
  91. }
  92. QScrollBar::add-page:vertical,
  93. QScrollBar::sub-page:vertical {
  94. background: none;
  95. }
  96. #cancelButton {
  97. background: rgb(45, 45, 45);
  98. border: 1px solid rgb(48, 48, 48);
  99. border-top: 1px solid rgb(53, 53, 53);
  100. border-radius: 5px;
  101. color: white;
  102. font: 14px 'Segoe UI', 'Microsoft YaHei';
  103. padding: 5px 9px 6px 9px;
  104. outline: none;
  105. }
  106. #cancelButton:hover {
  107. background: rgb(50, 50, 50);
  108. }
  109. #cancelButton:pressed {
  110. color: rgba(255, 255, 255, 0.63);
  111. background: rgb(39, 39, 39);
  112. border: 1px solid rgb(48, 48, 48);
  113. }
  114. #cancelButton:disabled {
  115. color: rgba(255, 255, 255, 0.63);
  116. background: rgb(59, 59, 59);
  117. border: 1px solid rgb(80, 80, 80);
  118. }