ui: Add inline_code
method to label (#29306)
This makes it easy to have a label that looks like Markdown inline code via the `inline_code(cx)` method. Release Notes: - N/A
This commit is contained in:
parent
ecc600a68f
commit
ba3d82629e
4 changed files with 33 additions and 2 deletions
|
@ -73,6 +73,11 @@ impl LabelCommon for AnimatedLabel {
|
|||
self.base = self.base.buffer_font(cx);
|
||||
self
|
||||
}
|
||||
|
||||
fn inline_code(mut self, cx: &App) -> Self {
|
||||
self.base = self.base.inline_code(cx);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
impl RenderOnce for AnimatedLabel {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue