From 5d9d3feb596401a25e81a125804304c493c6c51f Mon Sep 17 00:00:00 2001 From: crpz1 <8588315+crpz1@users.noreply.github.com> Date: Tue, 31 Oct 2023 15:56:55 +0000 Subject: [PATCH] Use current theme's background color on PNG export --- src/lib/components/Actions.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/Actions.svelte b/src/lib/components/Actions.svelte index a038712e..ad0fa6f1 100644 --- a/src/lib/components/Actions.svelte +++ b/src/lib/components/Actions.svelte @@ -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();