Fix blend mode serialization and de-serialization to match (#400)

This commit is contained in:
mfish33 2021-12-06 11:39:40 -08:00 committed by Keavon Chambers
parent 20a4c76fd7
commit b854814076
3 changed files with 49 additions and 49 deletions

View file

@ -35,22 +35,22 @@ pub fn translate_blend_mode(blend_mode_svg_style_name: &str) -> Option<BlendMode
use BlendMode::*;
let blend_mode = match blend_mode_svg_style_name {
"normal" => Normal,
"multiply" => Multiply,
"darken" => Darken,
"color-burn" => ColorBurn,
"screen" => Screen,
"lighten" => Lighten,
"color-dodge" => ColorDodge,
"overlay" => Overlay,
"soft-light" => SoftLight,
"hard-light" => HardLight,
"difference" => Difference,
"exclusion" => Exclusion,
"hue" => Hue,
"saturation" => Saturation,
"color" => Color,
"luminosity" => Luminosity,
"Normal" => Normal,
"Multiply" => Multiply,
"Darken" => Darken,
"ColorBurn" => ColorBurn,
"Screen" => Screen,
"Lighten" => Lighten,
"ColorDodge" => ColorDodge,
"Overlay" => Overlay,
"SoftLight" => SoftLight,
"HardLight" => HardLight,
"Difference" => Difference,
"Exclusion" => Exclusion,
"Hue" => Hue,
"Saturation" => Saturation,
"Color" => Color,
"Luminosity" => Luminosity,
_ => return None,
};