refactor(otp-generator): no more barcode color invertion

This commit is contained in:
Corentin Thomasset 2023-03-26 16:08:44 +02:00 committed by Corentin THOMASSET
parent 8787ce72ab
commit b1d6bfd2dc

View file

@ -84,7 +84,10 @@ const keyUri = computed(() => buildKeyUri({ secret: secret.value }));
const { qrcode } = useQRCode({ const { qrcode } = useQRCode({
text: keyUri, text: keyUri,
color: { background: '#00000000', foreground: computed(() => (styleStore.isDarkTheme ? '#ffffff' : '#000000')) }, color: {
background: computed(() => (styleStore.isDarkTheme ? '#ffffff' : '#00000000')),
foreground: '#000000',
},
options: { width: 210 }, options: { width: 210 },
}); });