mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Update Diff Modified Color (#2526)
For some reason the yellow I used for the modified color in light themes was really light . Release Notes: * Improved the contrast of diff modified color in the editor in light themes.
This commit is contained in:
parent
3f79b0c7cc
commit
793486b2e8
1 changed files with 8 additions and 8 deletions
|
@ -3,7 +3,7 @@ import { ColorScheme, Layer, StyleSets } from "../themes/common/colorScheme"
|
||||||
import { background, border, borderColor, foreground, text } from "./components"
|
import { background, border, borderColor, foreground, text } from "./components"
|
||||||
import hoverPopover from "./hoverPopover"
|
import hoverPopover from "./hoverPopover"
|
||||||
|
|
||||||
import { SyntaxHighlightStyle, buildSyntax } from "../themes/common/syntax"
|
import { buildSyntax } from "../themes/common/syntax"
|
||||||
|
|
||||||
export default function editor(colorScheme: ColorScheme) {
|
export default function editor(colorScheme: ColorScheme) {
|
||||||
const { isLight } = colorScheme
|
const { isLight } = colorScheme
|
||||||
|
@ -103,7 +103,7 @@ export default function editor(colorScheme: ColorScheme) {
|
||||||
? colorScheme.ramps.red(0.5).hex()
|
? colorScheme.ramps.red(0.5).hex()
|
||||||
: colorScheme.ramps.red(0.4).hex(),
|
: colorScheme.ramps.red(0.4).hex(),
|
||||||
modified: isLight
|
modified: isLight
|
||||||
? colorScheme.ramps.yellow(0.3).hex()
|
? colorScheme.ramps.yellow(0.5).hex()
|
||||||
: colorScheme.ramps.yellow(0.5).hex(),
|
: colorScheme.ramps.yellow(0.5).hex(),
|
||||||
inserted: isLight
|
inserted: isLight
|
||||||
? colorScheme.ramps.green(0.4).hex()
|
? colorScheme.ramps.green(0.4).hex()
|
||||||
|
@ -244,12 +244,12 @@ export default function editor(colorScheme: ColorScheme) {
|
||||||
thumb: {
|
thumb: {
|
||||||
background: withOpacity(background(layer, "inverted"), 0.3),
|
background: withOpacity(background(layer, "inverted"), 0.3),
|
||||||
border: {
|
border: {
|
||||||
width: 1,
|
width: 1,
|
||||||
color: borderColor(layer, "variant"),
|
color: borderColor(layer, "variant"),
|
||||||
top: false,
|
top: false,
|
||||||
right: true,
|
right: true,
|
||||||
left: true,
|
left: true,
|
||||||
bottom: false,
|
bottom: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
git: {
|
git: {
|
||||||
|
|
Loading…
Reference in a new issue