Skip to content

Collection of handy online tools for developers, with great UX.

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

Corentin Thomassetb1d6bfd2dcb7
diff --git a/src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue b/src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue
index 3521c236..52745d4a 100644
--- a/src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue
+++ b/src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue
@@ -84,7 +84,10 @@ const keyUri = computed(() => buildKeyUri({ secret: secret.value }));
const { qrcode } = useQRCode({
text: keyUri,
- color: { background: '#00000000', foreground: computed(() => (styleStore.isDarkTheme ? '#ffffff' : '#000000')) },
+ color: {
+ background: computed(() => (styleStore.isDarkTheme ? '#ffffff' : '#00000000')),
+ foreground: '#000000',
+ },
options: { width: 210 },
});