nightshade-editor 0.13.4

An interactive editor for the Nightshade game engine
#[cfg(not(target_arch = "wasm32"))]
pub fn nightshade_dark_preset() -> crate::mosaic::ThemeConfig {
    crate::mosaic::ThemeConfig {
        name: "Nightshade-Dark".to_string(),
        dark_mode: true,
        override_text_color: Some([246, 247, 245, 255]),
        window_fill: Some([25, 25, 24, 255]),
        window_stroke_color: Some([112, 112, 110, 255]),
        panel_fill: Some([25, 25, 24, 255]),
        selection_bg_fill: Some([167, 139, 250, 180]),
        selection_stroke_color: Some([167, 139, 250, 255]),
        hyperlink_color: Some([167, 139, 250, 255]),
        faint_bg_color: Some([25, 25, 24, 255]),
        extreme_bg_color: Some([0, 0, 0, 255]),
        code_bg_color: Some([25, 25, 24, 255]),
        warn_fg_color: Some([255, 128, 0, 255]),
        error_fg_color: Some([245, 27, 13, 255]),
        noninteractive_bg_fill: Some([25, 25, 24, 255]),
        noninteractive_bg_stroke_color: Some([69, 69, 67, 255]),
        noninteractive_fg_stroke_color: Some([155, 156, 154, 255]),
        inactive_bg_fill: Some([45, 45, 43, 255]),
        inactive_weak_bg_fill: Some([35, 35, 33, 255]),
        inactive_bg_stroke_color: Some([69, 69, 67, 255]),
        inactive_fg_stroke_color: Some([246, 247, 245, 255]),
        hovered_bg_fill: Some([167, 139, 250, 255]),
        hovered_bg_stroke_color: Some([167, 139, 250, 255]),
        hovered_fg_stroke_color: Some([25, 25, 24, 255]),
        active_bg_fill: Some([139, 92, 246, 255]),
        active_bg_stroke_color: Some([139, 92, 246, 255]),
        active_fg_stroke_color: Some([25, 25, 24, 255]),
        open_bg_fill: Some([45, 45, 43, 255]),
        open_bg_stroke_color: Some([69, 69, 67, 255]),
        open_fg_stroke_color: Some([246, 247, 245, 255]),
        ..Default::default()
    }
}

#[cfg(not(target_arch = "wasm32"))]
pub fn nightshade_light_preset() -> crate::mosaic::ThemeConfig {
    crate::mosaic::ThemeConfig {
        name: "Nightshade-Light".to_string(),
        dark_mode: false,
        override_text_color: Some([25, 25, 24, 255]),
        window_fill: Some([246, 247, 245, 255]),
        window_stroke_color: Some([219, 219, 219, 255]),
        panel_fill: Some([241, 242, 240, 255]),
        selection_bg_fill: Some([80, 229, 180, 180]),
        selection_stroke_color: Some([28, 186, 147, 255]),
        hyperlink_color: Some([28, 186, 147, 255]),
        faint_bg_color: Some([241, 242, 240, 255]),
        extreme_bg_color: Some([255, 255, 255, 255]),
        code_bg_color: Some([241, 242, 240, 255]),
        warn_fg_color: Some([255, 128, 0, 255]),
        error_fg_color: Some([223, 75, 65, 255]),
        noninteractive_bg_fill: Some([241, 242, 240, 255]),
        noninteractive_bg_stroke_color: Some([219, 219, 219, 255]),
        noninteractive_fg_stroke_color: Some([112, 112, 110, 255]),
        inactive_bg_fill: Some([237, 237, 237, 255]),
        inactive_weak_bg_fill: Some([230, 230, 228, 255]),
        inactive_bg_stroke_color: Some([219, 219, 219, 255]),
        inactive_fg_stroke_color: Some([112, 112, 110, 255]),
        hovered_bg_fill: Some([80, 229, 180, 255]),
        hovered_bg_stroke_color: Some([28, 186, 147, 255]),
        hovered_fg_stroke_color: Some([25, 25, 24, 255]),
        active_bg_fill: Some([28, 186, 147, 255]),
        active_bg_stroke_color: Some([28, 186, 147, 255]),
        active_fg_stroke_color: Some([25, 25, 24, 255]),
        open_bg_fill: Some([237, 237, 237, 255]),
        open_bg_stroke_color: Some([219, 219, 219, 255]),
        open_fg_stroke_color: Some([25, 25, 24, 255]),
        ..Default::default()
    }
}