Add LabelSize
This commit is contained in:
parent
9d31523cf3
commit
dc56a7b12b
2 changed files with 35 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
use gpui::{Div, Render};
|
||||
use theme2::ActiveTheme;
|
||||
|
||||
use crate::prelude::*;
|
||||
use crate::{h_stack, v_stack, KeyBinding, Label, LabelColor, StyledExt};
|
||||
use crate::{prelude::*, LabelSize};
|
||||
|
||||
pub struct TextTooltip {
|
||||
title: SharedString,
|
||||
|
@ -49,7 +49,11 @@ impl Render for TextTooltip {
|
|||
}),
|
||||
)
|
||||
.when_some(self.meta.clone(), |this, meta| {
|
||||
this.child(Label::new(meta).color(LabelColor::Muted))
|
||||
this.child(
|
||||
Label::new(meta)
|
||||
.size(LabelSize::Small)
|
||||
.color(LabelColor::Muted),
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue