gpui-component 0.6.1

GPUI Component: the styled component library of GPUI Kit, with 60+ desktop UI components for GPUI.
Documentation
use gpui_component::theme::{ThemeConfig, ThemeConfigColors, ThemeMode};

#[test]
fn legacy_text_view_style_struct_literal_shape_is_unchanged() {
    use gpui_component::text::TextViewStyle;

    let defaults = TextViewStyle::default();
    let _ = TextViewStyle {
        paragraph_gap: defaults.paragraph_gap,
        heading_base_font_size: defaults.heading_base_font_size,
        heading_font_size: defaults.heading_font_size,
        highlight_theme: defaults.highlight_theme,
        code_block: defaults.code_block,
        table: defaults.table,
        table_head: defaults.table_head,
        table_cell: defaults.table_cell,
        inline_code: defaults.inline_code,
        is_dark: defaults.is_dark,
    };
}

#[test]
fn legacy_theme_config_struct_literal_shape_is_unchanged() {
    let _ = ThemeConfig {
        is_default: false,
        name: "Compatibility".into(),
        mode: ThemeMode::Light,
        font_size: None,
        font_family: None,
        mono_font_family: None,
        mono_font_size: None,
        radius: None,
        radius_lg: None,
        shadow: None,
        colors: ThemeConfigColors::default(),
        highlight: None,
    };
}