| 1 | // Generated from Codewhale GPUI design 1.1.2; sha256 433b18a41c526da0b5a1bbaa461c37feac987c7688fbe7de660acfbbdafa9bd5. Do not edit. |
| 2 | #![allow(dead_code)] |
| 3 | |
| 4 | pub const VERSION: &str = "1.1.2"; |
| 5 | #[derive(Clone, Copy, Debug)] |
| 6 | pub struct Colors { |
| 7 | pub background: u32, |
| 8 | pub foreground: u32, |
| 9 | pub surface: u32, |
| 10 | pub muted_foreground: u32, |
| 11 | pub border: u32, |
| 12 | pub sidebar: u32, |
| 13 | pub primary: u32, |
| 14 | pub primary_foreground: u32, |
| 15 | pub hover: u32, |
| 16 | pub selected: u32, |
| 17 | pub attention: u32, |
| 18 | pub live: u32, |
| 19 | pub danger: u32, |
| 20 | pub border_strong: u32, |
| 21 | } |
| 22 | pub const DARK: Colors = Colors { |
| 23 | background: 0x202123, |
| 24 | foreground: 0xefeeeb, |
| 25 | surface: 0x2a2b2e, |
| 26 | muted_foreground: 0xc2c1bd, |
| 27 | border: 0x3b3c3f, |
| 28 | sidebar: 0x191a1c, |
| 29 | primary: 0x90b9ff, |
| 30 | primary_foreground: 0x15243e, |
| 31 | hover: 0x303134, |
| 32 | selected: 0x37393d, |
| 33 | attention: 0xe8b077, |
| 34 | live: 0x9ec7b2, |
| 35 | danger: 0xe39a90, |
| 36 | border_strong: 0x828386, |
| 37 | }; |
| 38 | pub const LIGHT: Colors = Colors { |
| 39 | background: 0xfaf8f5, |
| 40 | foreground: 0x28292b, |
| 41 | surface: 0xffffff, |
| 42 | muted_foreground: 0x535451, |
| 43 | border: 0xd9d5cf, |
| 44 | sidebar: 0xf0ede8, |
| 45 | primary: 0x245bc7, |
| 46 | primary_foreground: 0xfbf5ee, |
| 47 | hover: 0xe8e5e0, |
| 48 | selected: 0xdfdcd6, |
| 49 | attention: 0x86520d, |
| 50 | live: 0x3a6352, |
| 51 | danger: 0x9e3f36, |
| 52 | border_strong: 0x807c76, |
| 53 | }; |
| 54 | pub fn colors(dark: bool) -> Colors { |
| 55 | if dark { DARK } else { LIGHT } |
| 56 | } |
| 57 | pub const FONT_FAMILY: &str = "Shannon Sans"; |
| 58 | pub const FONT_FALLBACKS: &[&str] = &[ |
| 59 | "PingFang SC", |
| 60 | "Hiragino Sans GB", |
| 61 | "Microsoft YaHei UI", |
| 62 | "Microsoft YaHei", |
| 63 | "Noto Sans CJK SC", |
| 64 | "Noto Sans SC", |
| 65 | "Source Han Sans SC", |
| 66 | ]; |
| 67 | pub const SPACING_COMPACT: f32 = 4.0; |
| 68 | pub const SPACING_CONTROL: f32 = 8.0; |
| 69 | pub const SPACING_GROUP: f32 = 12.0; |
| 70 | pub const SPACING_SECTION: f32 = 16.0; |
| 71 | pub const SPACING_LARGE: f32 = 24.0; |
| 72 | pub const SPACING_PAGE: f32 = 32.0; |
| 73 | pub const RADIUS_CONTROL: f32 = 6.0; |
| 74 | pub const RADIUS_PANEL: f32 = 10.0; |
| 75 | pub const RADIUS_SHEET: f32 = 14.0; |
| 76 | pub const FOCUS_WIDTH: f32 = 2.0; |
| 77 | pub const FOCUS_OFFSET: f32 = 3.0; |
| 78 | pub const ICONS_GRID: f32 = 24.0; |
| 79 | pub const ICONS_STROKE: f32 = 1.7; |
| 80 | pub const MOTION_SPRING_STIFFNESS: f32 = 420.0; |
| 81 | pub const MOTION_SPRING_DAMPING: f32 = 42.0; |
| 82 | pub const MOTION_SPRING_MASS: f32 = 1.0; |
| 83 | pub const MOTION_PET_POLL_MS: f32 = 30.0; |
| 84 | pub const MOTION_REDUCED_POLL_MS: f32 = 500.0; |
| 85 | pub const MOTION_DURATION_STATE_MS: f32 = 120.0; |
| 86 | pub const MOTION_DURATION_ARRIVE_MS: f32 = 180.0; |
| 87 | pub const MOTION_DURATION_PANEL_MS: f32 = 340.0; |
| 88 | pub const SELECTION_OPACITY: f32 = 0.28; |
| 89 | pub const PRIMARY_HOVER_OPACITY: f32 = 0.9; |
| 90 | pub const MONO_PX: f32 = 13.0; |
| 91 | pub const TYPE_BODY_PX: f32 = 14.0; |
| 92 | pub const TYPE_CAPTION_PX: f32 = 12.0; |
| 93 | pub const TYPE_PROSE_PX: f32 = 17.0; |
| 94 | pub const TYPE_HEADING_PX: f32 = 17.0; |
| 95 | pub const TYPE_TITLE_PX: f32 = 22.0; |
| 96 |