logo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use crate::{
    foundation::colorspace::Color,
    painting::{NoneShapeBorder, ShapeBorder, TextStyle},
};

use super::SnackBarBehavior;

pub struct SnackBarThemeData {
    pub background_color: Color,
    pub action_text_color: Color,
    pub disabled_action_text_color: Color,
    pub content_text_style: TextStyle,
    pub elevation: f32,
    pub shape: Box<dyn ShapeBorder>,
    pub behavior: SnackBarBehavior,
}

impl Default for SnackBarThemeData {
    fn default() -> Self {
        Self {
            background_color: Default::default(),
            action_text_color: Default::default(),
            disabled_action_text_color: Default::default(),
            content_text_style: Default::default(),
            elevation: Default::default(),
            shape: box NoneShapeBorder,
            behavior: Default::default(),
        }
    }
}