Fix hint colors (#3855)
This PR fixes the hint colors, which were no longer correct after #3842. Release Notes: - N/A
This commit is contained in:
parent
d637657a99
commit
e8df1a7284
10 changed files with 47 additions and 40 deletions
|
@ -76,6 +76,8 @@ impl Zed1ThemeConverter {
|
|||
|
||||
let lowest = &base_theme.lowest;
|
||||
|
||||
let editor = &self.theme.editor;
|
||||
|
||||
Ok(StatusColorsRefinement {
|
||||
created: convert(lowest.positive.default.foreground),
|
||||
created_background: convert(lowest.positive.default.background),
|
||||
|
@ -95,7 +97,12 @@ impl Zed1ThemeConverter {
|
|||
error: convert(lowest.negative.default.foreground),
|
||||
error_background: convert(lowest.negative.default.background),
|
||||
error_border: convert(lowest.negative.default.border),
|
||||
hint: convert(lowest.accent.default.foreground),
|
||||
// The `hint` color used in Zed1 is inlined from the syntax colors.
|
||||
hint: editor
|
||||
.hint
|
||||
.color
|
||||
.map(zed1_color_to_hsla)
|
||||
.or(convert(lowest.accent.default.foreground)),
|
||||
hint_background: convert(lowest.accent.default.background),
|
||||
hint_border: convert(lowest.accent.default.border),
|
||||
predictive: convert(lowest.positive.default.foreground),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue