Skip to content

Commit d593ed3

Browse files
committed
Fixed scrollbar corner color
1 parent 0b5a81b commit d593ed3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/generators/modify-colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function modifyLightModeHSL({h, s, l, a}) {
6363

6464
function modifyBgHSL({h, s, l, a}) {
6565
const lMin = 0.1;
66-
const lMaxS0 = 0.2;
66+
const lMaxS0 = 0.25;
6767
const lMaxS1 = 0.4;
6868
const sNeutralLimL0 = 0.36;
6969
const sNeutralLimL1 = 0.12;

src/inject/dynamic-theme/modify-css.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ export function getModifiedUserAgentStyle(filter: FilterConfig) {
8585
lines.push('::-webkit-scrollbar-thumb:active {');;
8686
lines.push(` background-color: ${modifyBackgroundColor({r: 96, g: 96, b: 96}, filter)};`);
8787
lines.push('}');
88+
lines.push('::-webkit-scrollbar-corner {');
89+
lines.push(` background-color: ${modifyBackgroundColor({r: 255, g: 255, b: 255}, filter)};`);
90+
lines.push('}');
8891
return lines.join('\n');
8992
}
9093

0 commit comments

Comments
 (0)