1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-15 23:55:21 -04:00
This commit is contained in:
purian23
2026-06-12 10:40:18 -04:00
parent 92569d8b4d
commit 8d94117a69
16 changed files with 13 additions and 173 deletions
-3
View File
@@ -911,9 +911,6 @@ Singleton {
}
return Qt.rgba(r, g, b, alpha);
}
// Non-directional ambient layer of the M3 two-part shadow model (key +
// ambient). Derived from the key level so user intensity/opacity settings
// scale both layers together.
function elevationAmbient(level) {
const blur = (level && level.blurPx !== undefined) ? Math.max(0, level.blurPx) : 0;
const alpha = ((level && level.alpha !== undefined) ? level.alpha : 0.3) * 0.5;