diff --git a/cosmic-theme/src/model/theme.rs b/cosmic-theme/src/model/theme.rs index abe7f757..5ced23f0 100644 --- a/cosmic-theme/src/model/theme.rs +++ b/cosmic-theme/src/model/theme.rs @@ -458,20 +458,34 @@ where } /// Helper for building customized themes -#[derive(Debug, Serialize, Deserialize, cosmic_config::cosmic_config_derive::CosmicConfigEntry)] +#[derive( + Clone, Debug, Serialize, Deserialize, cosmic_config::cosmic_config_derive::CosmicConfigEntry, +)] pub struct ThemeBuilder { - palette: CosmicPalette, - spacing: Spacing, - corner_radii: CornerRadii, - neutral_tint: Option, - bg_color: Option, - primary_container_bg: Option, - secondary_container_bg: Option, - text_tint: Option, - accent: Option, - success: Option, - warning: Option, - destructive: Option, + /// override the palette for the builder + pub palette: CosmicPalette, + /// override spacing for the builder + pub spacing: Spacing, + /// override corner radii for the builder + pub corner_radii: CornerRadii, + /// override neutral_tint for the builder + pub neutral_tint: Option, + /// override bg_color for the builder + pub bg_color: Option, + /// override the primary container bg color for the builder + pub primary_container_bg: Option, + /// override the secontary container bg color for the builder + pub secondary_container_bg: Option, + /// override the text tint for the builder + pub text_tint: Option, + /// override the accent color for the builder + pub accent: Option, + /// override the success color for the builder + pub success: Option, + /// override the warning color for the builder + pub warning: Option, + /// override the destructive color for the builder + pub destructive: Option, } impl Default for ThemeBuilder {