From 45f97d8f94f67657421316f082ac1d4222012691 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Tue, 15 Apr 2025 15:22:31 +1000
Subject: feat: add low transparency mode

---
 app.tsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'app.tsx')

diff --git a/app.tsx b/app.tsx
index 88312e1..dcc93d8 100644
--- a/app.tsx
+++ b/app.tsx
@@ -22,8 +22,11 @@ const isLayer = (name: string) =>
     ["base", "mantle", "crust"].includes(name) || name.startsWith("surface") || name.startsWith("overlay");
 
 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;
+    const mode = style.transparency.get();
+    if (mode === "off" || !isLayer(name)) return hex;
+    let amount = 0.78;
+    if (mode === "low") amount = 0.88;
+    else if (mode === "high") amount = 0.58;
     return `color.change(${hex}, $alpha: ${amount})`;
 };
 
-- 
cgit v1.2.3-freya

