Skip to content

Commit

Permalink
Merge pull request #156 from primer/fold-background
Browse files Browse the repository at this point in the history
Use opacity for foldBackground
  • Loading branch information
simurai authored Apr 16, 2021
2 parents 996fc4f + 55021a0 commit 77a4dbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/classic/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function getTheme({ style, name }) {
"editor.foreground": editorForeground,
"editor.background": pick({ light: primer.white, dark: primer.gray[0] }),
"editorWidget.background": pick({ light: primer.gray[1], dark: "#1f2428" }),
"editor.foldBackground": pick({ light: primer.gray[0], dark: "#282e33" }),
"editor.foldBackground": pick({ light: "#d1d5da11", dark: "#58606915" }), // needs opacity
"editor.lineHighlightBackground": pick({ light: primer.gray[1], dark: "#2b3036" }),
"editorLineNumber.foreground": pick({ light: "#1b1f234d", dark: primer.gray[2] }),
"editorLineNumber.activeForeground": editorForeground,
Expand Down
2 changes: 1 addition & 1 deletion src/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function getTheme({ theme, name }) {
"editor.foreground" : color.text.primary,
"editor.background" : color.bg.canvas,
"editorWidget.background" : color.bg.overlay,
"editor.foldBackground" : color.bg.canvasInset,
"editor.foldBackground" : chroma(scale.gray[4]).alpha(0.1).hex(), // needs opacity
"editor.lineHighlightBackground" : color.codemirror.activelineBg,
"editorLineNumber.foreground" : color.codemirror.linenumberText,
"editorLineNumber.activeForeground" : color.text.primary,
Expand Down

0 comments on commit 77a4dbf

Please sign in to comment.