text rendering: support strikethroughs (#7363)
<img width="1269" alt="image" src="https://github.com/zed-industries/zed/assets/18583882/d4c93033-b2ac-4ae0-8e12-457f256ee869"> Release Notes: - Added support for styling text with strikethrough. Related: - https://github.com/zed-industries/zed/issues/5364 - https://github.com/zed-industries/zed/pull/7345
This commit is contained in:
parent
55129d4d6c
commit
ad3940c66f
14 changed files with 145 additions and 4 deletions
|
@ -362,6 +362,7 @@ impl TerminalElement {
|
|||
..text_style.font()
|
||||
},
|
||||
underline,
|
||||
strikethrough: None,
|
||||
};
|
||||
|
||||
if let Some((style, range)) = hyperlink {
|
||||
|
@ -414,6 +415,7 @@ impl TerminalElement {
|
|||
color: Some(theme.colors().link_text_hover),
|
||||
wavy: false,
|
||||
}),
|
||||
strikethrough: None,
|
||||
fade_out: None,
|
||||
};
|
||||
|
||||
|
@ -427,6 +429,7 @@ impl TerminalElement {
|
|||
white_space: WhiteSpace::Normal,
|
||||
// These are going to be overridden per-cell
|
||||
underline: None,
|
||||
strikethrough: None,
|
||||
color: theme.colors().text,
|
||||
font_weight: FontWeight::NORMAL,
|
||||
};
|
||||
|
@ -545,6 +548,7 @@ impl TerminalElement {
|
|||
color: theme.colors().terminal_background,
|
||||
background_color: None,
|
||||
underline: Default::default(),
|
||||
strikethrough: None,
|
||||
}],
|
||||
)
|
||||
.unwrap()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue