bevy_decorum 0.0.2

A highly customizable window decoration plugin for the Bevy engine, inspired by tauri-plugin-decorum
use bevy::prelude::*;

#[derive(Debug, Clone, Default)]
pub struct DecorumPlugin {}

impl DecorumPlugin {
    pub fn new() -> Self {
        DecorumPlugin::default()
    }
}

impl Plugin for DecorumPlugin {
    fn build(&self, app: &mut App) {
        app.init_resource::<crate::decorum::Decorum>()
            .init_resource::<crate::decorum::DecorumSettings>();

        app.add_systems(PreStartup, crate::decorum::get_primary_window);

        #[cfg(target_os = "macos")]
        app.add_systems(
            PreStartup,
            crate::decorum_traffic::setup_traffic_light_positioner,
        );
    }
}