History

Add strikethrough support back to `Label`

Marshall Bowers committed 3 years ago

Commit ed2c8cd1 parent 19434af1 file · +11 −11Browse files

Unified · Split

crates/ui2/src/elements/label.rs+11−11
@@ -133,17 +133,17 @@ impl<S: 'static + Send + Sync + Clone> Label<S> { · 132 unmodified lines
133 133
134 div()134 div()
135 .flex()135 .flex()
136 // .when(self.strikethrough, |this| {136 .when(self.strikethrough, |this| {
137 // this.relative().child(137 this.relative().child(
138 // div()138 div()
139 // .absolute()139 .absolute()
140 // .top_px()140 .top_px()
141 // .my_auto()141 .my_auto()
142 // .w_full()142 .w_full()
143 // .h_px()143 .h_px()
144 // .fill(LabelColor::Hidden.hsla(cx)),144 .fill(LabelColor::Hidden.hsla(cx)),
145 // )145 )
146 // })146 })
147 .children(runs.into_iter().map(|run| {147 .children(runs.into_iter().map(|run| {
148 let mut div = div();148 let mut div = div();
149 149

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t