Allow setting text background color via TextStyle

This commit is contained in:
Antonio Scandurra 2023-11-23 19:22:18 +01:00
parent 1ad22231d2
commit 7eeb8078f6
4 changed files with 23 additions and 2 deletions

View file

@ -9410,6 +9410,7 @@ impl Render for Editor {
font_weight: FontWeight::NORMAL,
font_style: FontStyle::Normal,
line_height: relative(1.).into(),
background_color: None,
underline: None,
white_space: WhiteSpace::Normal,
},
@ -9424,6 +9425,7 @@ impl Render for Editor {
font_weight: FontWeight::NORMAL,
font_style: FontStyle::Normal,
line_height: relative(settings.buffer_line_height.value()),
background_color: None,
underline: None,
white_space: WhiteSpace::Normal,
},

View file

@ -2452,7 +2452,7 @@ impl LineWithInvisibles {
len: line_chunk.len(),
font: text_style.font(),
color: text_style.color,
background_color: None,
background_color: text_style.background_color,
underline: text_style.underline,
});