BROKEN: Checkpoint
This commit is contained in:
parent
e4ca2cb20b
commit
6ecf629c63
4 changed files with 69 additions and 19 deletions
|
@ -2,6 +2,8 @@ use gpui::{relative, Hsla, WindowContext};
|
|||
use smallvec::SmallVec;
|
||||
|
||||
use crate::prelude::*;
|
||||
use crate::styled_ext::StyledExt;
|
||||
|
||||
#[derive(Default, PartialEq, Copy, Clone)]
|
||||
pub enum LabelColor {
|
||||
#[default]
|
||||
|
@ -85,7 +87,7 @@ impl Label {
|
|||
.bg(LabelColor::Hidden.hsla(cx)),
|
||||
)
|
||||
})
|
||||
.text_size(ui_text_default())
|
||||
.text_ui()
|
||||
.when(self.line_height_style == LineHeightStyle::UILabel, |this| {
|
||||
this.line_height(relative(1.))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue