1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Configuration parser, auto-creation, and JSON Schema generation.
//!
//! Defines two TOML config file structures:
//!
//! - [`FlowConfig`] — Application settings (padding, animation).
//! Loaded from `flow.toml` in the config directory.
//!
//! - [`WindowRulesConfig`] — Window classification rules and default action.
//! Loaded from `flow-rules.toml` in the config directory.
//!
//! # Config File Lifecycle
//!
//! The configuration system follows a four-phase lifecycle:
//!
//! 1. **Init** — [`lifecycle::init_config_dir`] creates the config directory and writes
//! default config files and JSON Schemas.
//!
//! 2. **Load** — [`lifecycle::load_app_config`] and [`lifecycle::load_rules_config`] read TOML
//! files from disk. Each config struct carries `#[serde(default)]` at the container level,
//! so files may be partial or empty — serde fills missing fields from the struct's
//! [`Default`] implementation.
//!
//! 3. **Validate** — [`lifecycle::check_config`] validates config files without loading
//! them into the running daemon.
//!
//! 4. **Use** — The daemon extracts fields from [`FlowConfig`] into the layout engine.
//!
//! See [`lifecycle`] module docs for detailed documentation of each function.
pub use Color;
pub use ;
pub use BorderConfig;
pub use FlowConfig;
pub use WindowRulesConfig;