fix(web): Make QR code colors solid (#18340)

This commit is contained in:
Snowknight26 2025-05-17 08:05:23 -05:00 committed by GitHub
parent b63d6cdcd6
commit 61d784f4e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,4 @@
<script lang="ts"> <script lang="ts">
import { Theme } from '$lib/constants';
import { themeManager } from '$lib/managers/theme-manager.svelte';
import QRCode from 'qrcode'; import QRCode from 'qrcode';
import { t } from 'svelte-i18n'; import { t } from 'svelte-i18n';
@ -12,13 +10,7 @@
const { value, width, alt = $t('alt_text_qr_code') }: Props = $props(); const { value, width, alt = $t('alt_text_qr_code') }: Props = $props();
let promise = $derived( let promise = $derived(QRCode.toDataURL(value, { margin: 0, width }));
QRCode.toDataURL(value, {
color: { dark: themeManager.value === Theme.DARK ? '#ffffffff' : '#000000ff', light: '#00000000' },
margin: 0,
width,
}),
);
</script> </script>
<div style="width: {width}px; height: {width}px"> <div style="width: {width}px; height: {width}px">