use crate::{details::format_custom_style, Color};
#[derive(Debug, Clone, PartialEq)]
pub struct GroupAttributes {
pub label: Option<String>,
pub fill_color: Option<Color>,
pub stroke_color: Option<Color>,
}
impl GroupAttributes {
pub fn new(label: Option<String>, fill_color: Option<Color>, stroke_color: Option<Color>) -> Self {
Self {
label,
fill_color,
stroke_color,
}
}
pub fn custom_style(&self) -> Option<String> {
format_custom_style(self.fill_color.as_ref(), self.stroke_color.as_ref(), None, None)
}
}