mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
feat(backgrounds): add snowfall background
This commit is contained in:
@@ -20,6 +20,8 @@ function reduceMobileSettings(settings: Record<string, unknown>): Record<string,
|
||||
reduced.particleCount = Math.max(20, Math.floor(reduced.particleCount / 4));
|
||||
if (typeof reduced.particleDensity === 'number')
|
||||
reduced.particleDensity = Math.max(50, Math.floor(reduced.particleDensity / 4));
|
||||
if (typeof reduced.density === 'number')
|
||||
reduced.density = Math.max(10, Math.floor(reduced.density / 2));
|
||||
if (typeof reduced.number === 'number')
|
||||
reduced.number = Math.max(5, Math.floor(reduced.number / 4));
|
||||
if ('interactive' in reduced) reduced.interactive = false;
|
||||
|
||||
Reference in New Issue
Block a user