use crate::*; pub struct Field(pub ItemPalette, pub T, pub U) where T: AsRef + Send + Sync, U: AsRef + Send + Sync; impl Content for Field where T: AsRef + Send + Sync, U: AsRef + Send + Sync { fn content (&self) -> impl Content { row!( Tui::bg(self.0.darkest.rgb, Tui::fg(self.0.darker.rgb, "▐")), Tui::bg(self.0.darker.rgb, Tui::fg(self.0.lighter.rgb, Tui::bold(true, format!("{}", self.1.as_ref())))), Tui::bg(self.0.darkest.rgb, Tui::fg(self.0.darker.rgb, "▌")), Tui::bg(self.0.darkest.rgb, Tui::fg(self.0.lightest.rgb, format!("{} ", self.2.as_ref()))) ) } }