summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/app.tsx b/app.tsx
index c23af96..ad9693e 100644
--- a/app.tsx
+++ b/app.tsx
@@ -20,7 +20,8 @@ const isLayer = (name: string) =>
const applyTransparency = (name: string, hex: string) => {
if (style.transparency.get() === "off" || !isLayer(name)) return hex;
- const amount = style.transparency.get() === "high" ? 0.58 : 0.78;
+ 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;
return `color.change(${hex}, $alpha: ${amount})`;
};