1use gpui3::{hsla, rems, AbsoluteLength, Hsla};
2
3#[derive(Clone, Copy)]
4pub struct Token {
5 pub list_indent_depth: AbsoluteLength,
6 pub default_panel_size: AbsoluteLength,
7 pub state_hover_background: Hsla,
8 pub state_active_background: Hsla,
9}
10
11impl Default for Token {
12 fn default() -> Self {
13 Self {
14 list_indent_depth: AbsoluteLength::Rems(rems(0.5)),
15 default_panel_size: AbsoluteLength::Rems(rems(16.)),
16 state_hover_background: hsla(0.0, 0.0, 0.0, 0.08),
17 state_active_background: hsla(0.0, 0.0, 0.0, 0.16),
18 }
19 }
20}
21
22pub fn token() -> Token {
23 Token::default()
24}