pub fn from_config(config: ThemeConfig) -> Self {
        let mut styles = HashMap::new();

        for style_key in config.styles.keys() {
            Theme::read_config(style_key, style_key, &config, &mut styles)
        }

        Theme {
            styles,
            fonts: HashMap::new(),
        }
    }
/// Creates a theme from the given config.
Creates a theme from the given config.
Creates a theme from the given config .
pub fn from_config(config: ThemeConfig) -> Self {
        let mut styles = HashMap::new();
        for style_key in config.styles.keys() {
            Theme::read_config(style_key, style_key, &config, &mut styles)
        }
        Theme {
            styles,
            fonts: HashMap::new(),
        }
    }
pub fn from_config ( config : ThemeConfig ) -> Self { let mut styles = HashMap :: new ( ) ; for style_key in config . styles . keys ( ) { Theme :: read_config ( style_key , style_key , & config , & mut styles ) } Theme { styles , fonts : HashMap :: new ( ) , } }
Creates a theme from the given config.
Creates a theme from the given config .
config
ThemeConfig