BROKEN: Checkpoint

This commit is contained in:
Nate Butler 2023-11-08 14:29:38 -05:00
parent e4ca2cb20b
commit 6ecf629c63
4 changed files with 69 additions and 19 deletions

View file

@ -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.))
})