From 022016a32f36f4b90b5a676f239fea2d60ef9596 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Tue, 25 Mar 2025 12:58:35 +1100
Subject: style: more transparency when light mode

Cause light colours let less background colour pass through
---
 app.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'app.tsx')

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})`;
 };
 
-- 
cgit v1.2.3-freya

