pub fn parse_vscode_theme(file: &str) -> Result<Theme>Expand description
Attempts to parse a theme file using visual studio code theme schema
§Arguments
file: Path to the theme file to be parsed
§Returns
- A
Themeif the parse is successful
§Errors
Can fail if the provided file cannot be read from or if serde_json is not able to deserialize
the contents of the file
§Panics
This function might panic if a hex string within the file is not able to be parsed into a
Color::Rgb