summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/app.tsx b/app.tsx
index f1dcde3..fd2ded1 100644
--- a/app.tsx
+++ b/app.tsx
@@ -23,8 +23,7 @@ const isLayer = (name: string) =>
const applyTransparency = (name: string, hex: string) => {
if (style.transparency.get() === "off" || !isLayer(name)) return hex;
- let amount = style.transparency.get() === "high" ? 0.58 : 0.78;
- if (Palette.get_default().mode === "light") amount = style.transparency.get() === "high" ? 0.53 : 0.63;
+ const amount = style.transparency.get() === "high" ? 0.58 : 0.78;
return `color.change(${hex}, $alpha: ${amount})`;
};