//! Style definitions for various elements /// Style definitions for [`iced::Container`] pub mod container { use iced::{ container::{Style, StyleSheet}, Color, }; #[derive(Debug)] /// Style for a container displaying an error message pub struct Error; impl StyleSheet for Error { fn style(&self) -> Style { iced::container::Style { background: Color::from_rgb(1.0, 0.0, 0.0).into(), text_color: Some(Color::from_rgb(1.0, 1.0, 1.0)), border_radius: 2.0, ..Default::default() } } } }