26 lines
560 B
Rust
26 lines
560 B
Rust
use crate::config::OnDeckConfig;
|
|
use crate::text_drawer::TextConfig;
|
|
|
|
#[allow(dead_code)]
|
|
#[derive(Debug)]
|
|
pub struct SlideShowTheme<'a> {
|
|
pub title_config: TextConfig<'a>,
|
|
pub heading_config: TextConfig<'a>,
|
|
pub body_config: TextConfig<'a>,
|
|
}
|
|
|
|
#[derive(Debug)]
|
|
pub struct Context<'a> {
|
|
pub slide_show_theme: SlideShowTheme<'a>,
|
|
pub cfg: OnDeckConfig,
|
|
}
|
|
|
|
impl<'a> Context<'a> {
|
|
pub fn new(slide_show_theme: SlideShowTheme<'a>, cfg: OnDeckConfig) -> Self {
|
|
Self {
|
|
slide_show_theme,
|
|
cfg,
|
|
}
|
|
}
|
|
}
|