all: split reusable components into workspace crates
This commit is contained in:
parent
2a079ed800
commit
657e7ce2f7
225 changed files with 7422 additions and 17602 deletions
13
jay-config-schema/src/animations.rs
Normal file
13
jay-config-schema/src/animations.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#[derive(Debug, Clone, Default)]
|
||||
pub struct Animations {
|
||||
pub enabled: Option<bool>,
|
||||
pub duration_ms: Option<u32>,
|
||||
pub style: Option<String>,
|
||||
pub curve: Option<AnimationCurveConfig>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum AnimationCurveConfig {
|
||||
Preset(String),
|
||||
CubicBezier([f32; 4]),
|
||||
}
|
||||
9
jay-config-schema/src/lib.rs
Normal file
9
jay-config-schema/src/lib.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
//! Shared configuration schema declarations for Jay.
|
||||
//!
|
||||
//! This crate is the target home for option structs, defaults, validation
|
||||
//! policy, and docs metadata that need to be consumed by TOML parsing,
|
||||
//! generated config documentation, and compositor-side application code.
|
||||
|
||||
pub mod animations;
|
||||
|
||||
pub use animations::{AnimationCurveConfig, Animations};
|
||||
Loading…
Add table
Add a link
Reference in a new issue