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:
co-authored by
Kay Simmons
Mikayla Maki
parent
632f47930f
commit
8d2de1074b
@@ -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,
|
||||
|
||||
@@ -113,6 +113,11 @@ export function createTheme(
|
||||
hovered: sample(ramps.blue, 0.1),
|
||||
active: sample(ramps.blue, 0.15),
|
||||
},
|
||||
on500Ok: {
|
||||
base: sample(ramps.green, 0.05),
|
||||
hovered: sample(ramps.green, 0.1),
|
||||
active: sample(ramps.green, 0.15)
|
||||
}
|
||||
};
|
||||
|
||||
const borderColor = {
|
||||
|
||||
@@ -78,6 +78,7 @@ export default interface Theme {
|
||||
// Hacks for elements on top of the editor
|
||||
on500: BackgroundColorSet;
|
||||
ok: BackgroundColorSet;
|
||||
on500Ok: BackgroundColorSet;
|
||||
error: BackgroundColorSet;
|
||||
on500Error: BackgroundColorSet;
|
||||
warning: BackgroundColorSet;
|
||||
|
||||
Reference in New Issue
Block a user