BlueGit

ict rusty-teams

Files

rusty-teams / vendor / gpui-component / tests / theme_compat.rs

theme_compat.rs

theme_compat.rs 1.2 KiB Download Raw
1use gpui_component::theme::{ThemeConfig, ThemeConfigColors, ThemeMode};
2
3#[test]
4fn legacy_text_view_style_struct_literal_shape_is_unchanged() {
5 use gpui_component::text::TextViewStyle;
6
7 let defaults = TextViewStyle::default();
8 let _ = TextViewStyle {
9 paragraph_gap: defaults.paragraph_gap,
10 heading_base_font_size: defaults.heading_base_font_size,
11 heading_font_size: defaults.heading_font_size,
12 highlight_theme: defaults.highlight_theme,
13 code_block: defaults.code_block,
14 table: defaults.table,
15 table_head: defaults.table_head,
16 table_cell: defaults.table_cell,
17 inline_code: defaults.inline_code,
18 is_dark: defaults.is_dark,
19 };
20}
21
22#[test]
23fn legacy_theme_config_struct_literal_shape_is_unchanged() {
24 let _ = ThemeConfig {
25 is_default: false,
26 name: "Compatibility".into(),
27 mode: ThemeMode::Light,
28 font_size: None,
29 font_family: None,
30 mono_font_family: None,
31 mono_font_size: None,
32 radius: None,
33 radius_lg: None,
34 shadow: None,
35 colors: ThemeConfigColors::default(),
36 highlight: None,
37 };
38}