mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 02:48:12 +08:00
Fix blend mode serialization and de-serialization to match (#400)
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user