mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 05:18:19 +00:00
Fix blend mode serialization and de-serialization to match (#400)
This commit is contained in:
parent
20a4c76fd7
commit
b854814076
3 changed files with 49 additions and 49 deletions
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue