Skip to content

High performance self-hosted photo and video management solution.

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

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