diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-25 12:58:35 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-25 12:58:35 +1100 |
| commit | 022016a32f36f4b90b5a676f239fea2d60ef9596 (patch) | |
| tree | 7e0fc171606845a7cbe201759a657929a802de99 /app.tsx | |
| parent | style: ensure loading correct order (diff) | |
| download | caelestia-shell-022016a32f36f4b90b5a676f239fea2d60ef9596.tar.gz caelestia-shell-022016a32f36f4b90b5a676f239fea2d60ef9596.tar.bz2 caelestia-shell-022016a32f36f4b90b5a676f239fea2d60ef9596.zip | |
style: more transparency when light mode
Cause light colours let less background colour pass through
Diffstat (limited to 'app.tsx')
| -rw-r--r-- | app.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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})`; }; |