From b1d6bfd2dcb718b486dcd708adcdea65341b3d16 Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Sun, 26 Mar 2023 16:08:44 +0200 Subject: [PATCH] refactor(otp-generator): no more barcode color invertion --- .../otp-code-generator-and-validator.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }, });