mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Tweak scrollbar styling
This commit is contained in:
parent
7b084199be
commit
b229bc69b9
2 changed files with 7 additions and 3 deletions
|
@ -172,7 +172,7 @@ export default function editor(theme: Theme) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
scrollbar: {
|
scrollbar: {
|
||||||
width: 12,
|
width: 14,
|
||||||
track: {
|
track: {
|
||||||
border: {
|
border: {
|
||||||
left: true,
|
left: true,
|
||||||
|
@ -181,7 +181,11 @@ export default function editor(theme: Theme) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
thumb: {
|
thumb: {
|
||||||
background: borderColor(theme, "secondary"),
|
background: withOpacity(borderColor(theme, "secondary"), 0.5),
|
||||||
|
border: {
|
||||||
|
width: 1,
|
||||||
|
color: withOpacity(borderColor(theme, 'muted'), 0.5),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
compositionMark: {
|
compositionMark: {
|
||||||
|
|
|
@ -123,7 +123,7 @@ export function createTheme(
|
||||||
const borderColor = {
|
const borderColor = {
|
||||||
primary: sample(ramps.neutral, isLight ? 1.5 : 0),
|
primary: sample(ramps.neutral, isLight ? 1.5 : 0),
|
||||||
secondary: sample(ramps.neutral, isLight ? 1.25 : 1),
|
secondary: sample(ramps.neutral, isLight ? 1.25 : 1),
|
||||||
muted: sample(ramps.neutral, isLight ? 1 : 3),
|
muted: sample(ramps.neutral, isLight ? 1.25 : 3),
|
||||||
active: sample(ramps.neutral, isLight ? 4 : 3),
|
active: sample(ramps.neutral, isLight ? 4 : 3),
|
||||||
onMedia: withOpacity(darkest, 0.1),
|
onMedia: withOpacity(darkest, 0.1),
|
||||||
ok: sample(ramps.green, 0.3),
|
ok: sample(ramps.green, 0.3),
|
||||||
|
|
Loading…
Reference in a new issue