Include an AVIF version of the background gradient, with a fallback to PNG

The AVIF is significantly smaller that the PNG to load
This commit is contained in:
Quentin Gliech
2026-05-28 13:39:52 +02:00
parent aadd6a3c92
commit d0d2e22578
2 changed files with 4 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@@ -44,7 +44,10 @@ layer(compound);
);
--small-drop-shadow: 0px 1.2px 2.4px 0px rgba(0, 0, 0, 0.15);
--subtle-drop-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
--background-gradient: url("graphics/backgroundGradient.png");
--background-gradient: image-set(
url("graphics/backgroundGradient.avif") type("image/avif"),
url("graphics/backgroundGradient.png") type("image/png")
);
--call-view-overlay-layer: 1;
--call-view-header-footer-layer: 2;