style: more transparency when light mode
Cause light colours let less background colour pass through
This commit is contained in:
parent
e39900b77e
commit
022016a32f
1 changed files with 2 additions and 1 deletions
3
app.tsx
3
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})`;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue