// This example demonstrates how to create a custom theme programmatically. use owlen_core::theme::Theme; use ratatui::style::{Color, Style}; fn create_custom_theme() -> Theme { Theme { name: "My Custom Theme".to_string(), author: "Your Name".to_string(), comment: "A simple custom theme".to_string(), base: Style::default().fg(Color::White).bg(Color::Black), user_chat: Style::default().fg(Color::Green), bot_chat: Style::default().fg(Color::Cyan), error: Style::default().fg(Color::Red), info: Style::default().fg(Color::Yellow), border: Style::default().fg(Color::Gray), input: Style::default().fg(Color::White), ..Default::default() } } fn main() { let custom_theme = create_custom_theme(); println!("Created custom theme: {}", custom_theme.name); println!("Author: {}", custom_theme.author); println!("User chat color: {:?}", custom_theme.user_chat.fg); }