color_dialog.qss 2.8 KB

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