返回 CodeWhale
mod.rs
根目录 / crates / tui / src / palette / mod.rs
1 //! Codewhale color palette and semantic roles.
2 //!
3 //! This module defines the color system for the TUI in three layers:
4 //!
5 //! 1. **RGB tuples** (`*_RGB` constants) — raw color values used by theme
6 //! generation and runtime palette construction.
7 //! 2. **Semantic `Color` constants** — pre-computed `ratatui::style::Color`
8 //! values mapped to UI roles (surface, text, accent, status, mode).
9 //! 3. **Backward-compatible aliases** (`DEEPSEEK_*`) — legacy names that
10 //! delegate to the current Whale palette constants.
11
12 mod adapt;
13 mod contrast;
14 mod detect;
15 mod osc11;
16 mod themes;
17 mod tokens;
18 mod user_theme;
19
20 #[cfg(test)]
21 mod tests;
22
23 #[allow(unused_imports)]
24 pub use adapt::*;
25 #[allow(unused_imports)]
26 pub use contrast::*;
27 #[allow(unused_imports)]
28 pub use detect::*;
29 #[allow(unused_imports)]
30 pub use osc11::*;
31 #[allow(unused_imports)]
32 pub use themes::*;
33 pub use tokens::*;
34 pub use user_theme::*;
35
35 lines RUST