mirror of
https://github.com/vector-im/element-call.git
synced 2026-06-15 12:12:57 +00:00
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:
BIN
src/graphics/backgroundGradient.avif
Normal file
BIN
src/graphics/backgroundGradient.avif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user