diff --git a/crates/ui-contract/src/primitives/text.rs b/crates/ui-contract/src/primitives/text.rs index 210c94edb..a4d18bf78 100644 --- a/crates/ui-contract/src/primitives/text.rs +++ b/crates/ui-contract/src/primitives/text.rs @@ -294,9 +294,6 @@ impl TextRun<'_> { if span.underline { format.underline = egui::Stroke::new(env.tokens.stroke.thin, color); } - if span.strikethrough { - format.strikethrough = egui::Stroke::new(env.tokens.stroke.thin, color); - } job.append(text_part, 0.0, format); } job diff --git a/crates/ui-contract/src/style/span.rs b/crates/ui-contract/src/style/span.rs index d8e8cd57a..b75ed4afb 100644 --- a/crates/ui-contract/src/style/span.rs +++ b/crates/ui-contract/src/style/span.rs @@ -22,8 +22,6 @@ pub struct Span<'a> { pub highlight: bool, /// Underlined in the span's colour, `stroke.thin` wide, along the bottom of the line box. pub underline: bool, - /// Struck through in the span's colour, `stroke.thin` wide, across the middle of the line box. - pub strikethrough: bool, /// The role's semibold face, at the role's size. pub strong: bool, } @@ -40,7 +38,6 @@ impl<'a> Span<'a> { shortcut: false, highlight: false, underline: false, - strikethrough: false, strong: false, } } @@ -87,12 +84,6 @@ impl<'a> Span<'a> { self } - /// Struck through: a word marked for removal. - pub fn strikethrough(mut self) -> Self { - self.strikethrough = true; - self - } - /// The role's semibold face: a short mark that stands out among the row's other text, such as a layer's `fx`. pub fn strong(mut self) -> Self { self.strong = true;