Bring UI crate up to date

This commit is contained in:
Nate Butler 2023-09-21 23:46:06 -04:00
parent 66358f2900
commit f54634aeb2
24 changed files with 1090 additions and 167 deletions

18
crates/ui/src/tokens.rs Normal file
View file

@ -0,0 +1,18 @@
use gpui2::geometry::AbsoluteLength;
#[derive(Clone, Copy)]
pub struct Token {
pub list_indent_depth: AbsoluteLength,
}
impl Default for Token {
fn default() -> Self {
Self {
list_indent_depth: AbsoluteLength::Rems(0.5),
}
}
}
pub fn token() -> Token {
Token::default()
}