Bring UI crate up to date
This commit is contained in:
parent
66358f2900
commit
f54634aeb2
24 changed files with 1090 additions and 167 deletions
18
crates/ui/src/tokens.rs
Normal file
18
crates/ui/src/tokens.rs
Normal 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()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue