Merge a1d002a702
into 0e575b2809
This commit is contained in:
commit
f4930fa381
1 changed files with 15 additions and 4 deletions
|
@ -597,11 +597,22 @@ pub fn make_inlay_hints_style(cx: &mut App) -> HighlightStyle {
|
||||||
.inlay_hints
|
.inlay_hints
|
||||||
.show_background;
|
.show_background;
|
||||||
|
|
||||||
HighlightStyle {
|
let mut style = cx.theme().syntax().get("hint");
|
||||||
color: Some(cx.theme().status().hint),
|
|
||||||
background_color: show_background.then(|| cx.theme().status().hint_background),
|
if style.color.is_none() {
|
||||||
..HighlightStyle::default()
|
style.color = Some(cx.theme().status().hint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !show_background {
|
||||||
|
style.background_color = None;
|
||||||
|
return style;
|
||||||
|
}
|
||||||
|
|
||||||
|
if style.background_color.is_none() {
|
||||||
|
style.background_color = Some(cx.theme().status().hint_background);
|
||||||
|
}
|
||||||
|
|
||||||
|
style
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn make_suggestion_styles(cx: &mut App) -> EditPredictionStyles {
|
pub fn make_suggestion_styles(cx: &mut App) -> EditPredictionStyles {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue