Use current theme's background color on PNG export

This commit is contained in:
crpz1
2023-10-31 15:56:55 +00:00
parent 414c5bb59b
commit 5d9d3feb59
+1 -1
View File
@@ -49,7 +49,7 @@
if (!context) {
throw new Error('context not found');
}
context.fillStyle = 'white';
context.fillStyle = `hsl(${window.getComputedStyle(document.body).getPropertyValue('--b1')})`;
context.fillRect(0, 0, canvas.width, canvas.height);
const image = new Image();