Merge pull request #1715 from zed-industries/scrollbars

Add scrollbars
This commit is contained in:
Max Brunsfeld
2022-10-11 13:34:15 -07:00
committed by GitHub
8 changed files with 228 additions and 13 deletions
+19
View File
@@ -1,4 +1,5 @@
import Theme from "../themes/common/theme";
import { withOpacity } from "../utils/color";
import {
backgroundColor,
border,
@@ -170,6 +171,24 @@ export default function editor(theme: Theme) {
background: backgroundColor(theme, "on500"),
},
},
scrollbar: {
width: 12,
minHeightFactor: 1.0,
track: {
border: {
left: true,
width: 1,
color: borderColor(theme, "secondary"),
},
},
thumb: {
background: withOpacity(borderColor(theme, "secondary"), 0.5),
border: {
width: 1,
color: withOpacity(borderColor(theme, 'muted'), 0.5),
}
}
},
compositionMark: {
underline: {
thickness: 1.0,