From 27b453b4d7d19a011a0adc832f22f0b72759ce6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20S=C3=A1nchez?= Date: Mon, 15 Apr 2024 17:35:26 +0200 Subject: [PATCH] blend modes fix --- plugin-src/translators/translateBlendMode.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin-src/translators/translateBlendMode.ts b/plugin-src/translators/translateBlendMode.ts index d045e46..907a06a 100644 --- a/plugin-src/translators/translateBlendMode.ts +++ b/plugin-src/translators/translateBlendMode.ts @@ -2,24 +2,24 @@ import { BlendMode as PenpotBlendMode } from '@ui/lib/types/utils/blendModes'; export const translateBlendMode = (blendMode: BlendMode): PenpotBlendMode => { switch (blendMode) { + //@TODO: is not translatable in penpot, this is the closest one case 'PASS_THROUGH': - return 'normal'; //@TODO: is not translatable in penpot, this is the closest one case 'NORMAL': return 'normal'; + //@TODO: is not translatable in penpot, this is the closest one + case 'LINEAR_BURN': case 'DARKEN': return 'darken'; case 'MULTIPLY': return 'multiply'; - case 'LINEAR_BURN': - return 'darken'; //@TODO: is not translatable in penpot, this is the closest one case 'COLOR_BURN': return 'color-burn'; case 'LIGHTEN': return 'lighten'; - case 'LINEAR_DODGE': - return 'color-dodge'; //@TODO: is not translatable in penpot, this is the closest one case 'SCREEN': return 'screen'; + //@TODO: is not translatable in penpot, this is the closest one + case 'LINEAR_DODGE': case 'COLOR_DODGE': return 'color-dodge'; case 'OVERLAY':