Module themes

Module themes 

Source
Expand description

IDE Theme System

This module provides theme management for the IDE, re-exporting theme types from ricecoder-tui and providing IDE-specific theme manager wrapper functionality.

§Architecture

The IDE theme system is built on top of the TUI theme system, providing:

  • Re-exported theme types (Color, Theme, ThemeManager)
  • IDE-specific theme manager wrapper
  • Integration with IDE configuration
  • Theme persistence through ricecoder-storage

§Example

use ricecoder_ide::themes::{IdeThemeManager, Color, Theme};

// Create IDE theme manager
let theme_manager = IdeThemeManager::new();

// Switch to a theme
theme_manager.switch_by_name("dracula")?;

// Get current theme
let current = theme_manager.current()?;
println!("Current theme: {}", current.name);

Re-exports§

pub use integration::IdeThemeConfig;
pub use integration::IdeThemeIntegration;

Modules§

integration
IDE Theme Integration

Structs§

Color
Color definition
IdeThemeManager
IDE-specific theme manager wrapper
Theme
Theme definition
ThemeLoader
Custom theme loader
ThemeManager
Theme manager for runtime theme management and switching
ThemeRegistry
Theme registry for storing and managing themes
ThemeResetManager
Theme reset manager for resetting themes to their default state

Enums§

ColorSupport
Terminal color support levels