Pull git indicator colors out of theme

Co-Authored-By: Kay Simmons <kay@zed.dev>
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
Julia
2022-09-29 13:16:02 -04:00
co-authored by Kay Simmons Mikayla Maki
parent 632f47930f
commit 8d2de1074b
5 changed files with 23 additions and 5 deletions
+4 -2
View File
@@ -7,6 +7,7 @@ import {
player,
popoverShadow,
text,
textColor,
TextColor,
} from "./components";
import hoverPopover from "./hoverPopover";
@@ -59,8 +60,9 @@ export default function editor(theme: Theme) {
indicator: iconColor(theme, "secondary"),
verticalScale: 0.618
},
diffBackgroundDeleted: backgroundColor(theme, "error"),
diffBackgroundInserted: backgroundColor(theme, "ok"),
diffBackgroundDeleted: theme.ramps.red(0.3).hex(),
diffBackgroundInserted: theme.ramps.green(0.3).hex(),
diffBackgroundModified: theme.ramps.blue(0.3).hex(),
documentHighlightReadBackground: theme.editor.highlight.occurrence,
documentHighlightWriteBackground: theme.editor.highlight.activeOccurrence,
errorColor: theme.textColor.error,