rat_widget/calendar/
style.rs1use crate::_private::NonExhaustive;
2use ratatui::style::Style;
3use ratatui::widgets::Block;
4
5#[derive(Debug, Clone)]
7pub struct CalendarStyle {
8 pub style: Style,
10 pub title: Option<Style>,
12 pub weeknum: Option<Style>,
14 pub weekday: Option<Style>,
16 pub day: Option<Style>,
18 pub select: Option<Style>,
20 pub focus: Option<Style>,
22 pub block: Option<Block<'static>>,
24
25 pub non_exhaustive: NonExhaustive,
26}
27
28impl Default for CalendarStyle {
29 fn default() -> Self {
30 Self {
31 style: Default::default(),
32 title: None,
33 weeknum: None,
34 weekday: None,
35 day: None,
36 select: None,
37 focus: None,
38 block: None,
39 non_exhaustive: NonExhaustive,
40 }
41 }
42}