Base: codex-main originale (prima del fork aKode)
This commit is contained in:
37
codex-rs/config/src/tui_effects.rs
Normal file
37
codex-rs/config/src/tui_effects.rs
Normal file
@@ -0,0 +1,37 @@
|
||||
//! Individual TUI effect preferences, subordinate to the animation master switch.
|
||||
|
||||
use schemars::JsonSchema;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
|
||||
/// Optional visual effects. Disabling an effect preserves its underlying activity.
|
||||
#[derive(Serialize, Deserialize, Debug, Copy, Clone, PartialEq, Eq, JsonSchema)]
|
||||
#[serde(default)]
|
||||
#[schemars(deny_unknown_fields)]
|
||||
pub struct TuiEffects {
|
||||
/// Animate the composer starfield.
|
||||
pub starfield: bool,
|
||||
/// Shimmer status and loading text.
|
||||
pub shimmer: bool,
|
||||
/// Animate the welcome artwork.
|
||||
pub welcome: bool,
|
||||
/// Animate reasoning-effort changes in the composer and footer.
|
||||
pub effort: bool,
|
||||
/// Animate activity bullets and loading spinners.
|
||||
pub progress: bool,
|
||||
/// Blink the terminal-title indicator when user action is required.
|
||||
pub title: bool,
|
||||
}
|
||||
|
||||
impl Default for TuiEffects {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
starfield: true,
|
||||
shimmer: true,
|
||||
welcome: true,
|
||||
effort: true,
|
||||
progress: true,
|
||||
title: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user