termcinema_engine/constants.rs
1//! Default values for style, cursor, and control configurations.
2//!
3//! These constants are used as fallbacks when no values are provided
4//! via CLI arguments, theme presets, or user overrides.
5
6// ───────────────🎨 Style Defaults ───────────────
7
8/// Default font size in pixels.
9pub const DEFAULT_STYLE_FONT_SIZE: u32 = 18;
10
11/// Default font family name (used in CSS `font-family`).
12pub const DEFAULT_STYLE_FONT_FAMILY: &str = "Monospace";
13
14/// Default text color in hexadecimal (e.g. white).
15pub const DEFAULT_STYLE_TEXT_COLOR: &str = "#ffffff";
16
17/// Default background color in hexadecimal (e.g. black).
18pub const DEFAULT_STYLE_BACKGROUND_COLOR: &str = "#000000";
19
20// ───────────────🖋 Cursor Defaults ───────────────
21
22/// Default cursor character (e.g. vertical bar).
23pub const DEFAULT_CURSOR_CHAR: &str = "|";
24
25/// Horizontal cursor offset in pixels.
26pub const DEFAULT_CURSOR_OFFSET_X: u32 = 20;
27
28/// Whether cursor blinking is enabled by default.
29pub const DEFAULT_CURSOR_BLINK: bool = true;
30
31/// Default blinking interval in milliseconds.
32pub const DEFAULT_CURSOR_BLINK_MS: u32 = 900;
33
34/// Cursor opacity from 0.0 (transparent) to 1.0 (fully visible).
35pub const DEFAULT_CURSOR_OPACITY: f32 = 1.0;
36
37// ───────────────⏱ Control Defaults ───────────────
38
39/// Delay before animation starts, in milliseconds.
40pub const DEFAULT_CONTROL_START_DELAY: u32 = 600;
41
42/// Duration of character fade-in, in milliseconds.
43pub const DEFAULT_CONTROL_FADE_DURATION: u32 = 100;
44
45/// Delay between each character during typing, in milliseconds.
46pub const DEFAULT_CONTROL_FRAME_DELAY: u32 = 60;