Fix predictive text color (#3867)

This PR fixes the predictive text colors, which were no longer correct
after #3842.

Release Notes:

- Fixed predictive text colors.
This commit is contained in:
Marshall Bowers 2024-01-03 17:09:01 -05:00 committed by GitHub
parent afeae56fab
commit a4986c397d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 44 additions and 40 deletions

View file

@ -117,7 +117,11 @@ impl Zed1ThemeConverter {
.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),
predictive: editor
.suggestion
.color
.map(zed1_color_to_hsla)
.or(convert(lowest.positive.default.foreground)),
predictive_background: convert(lowest.positive.default.background),
predictive_border: convert(lowest.positive.default.border),
conflict: convert(lowest.warning.default.foreground),