aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2023-03-26 16:08:44 +0200
committerGravatar Corentin THOMASSET <corentin.thomasset74@gmail.com> 2023-03-26 16:15:37 +0200
commitb1d6bfd2dcb718b486dcd708adcdea65341b3d16 (patch)
tree6156079ad580d78d23be7318d4f0304125de0707
parent8787ce72ababea4b412f8946399b256fdaacc427 (diff)
downloadit-tools-b1d6bfd2dcb718b486dcd708adcdea65341b3d16.tar.gz
it-tools-b1d6bfd2dcb718b486dcd708adcdea65341b3d16.tar.zst
it-tools-b1d6bfd2dcb718b486dcd708adcdea65341b3d16.zip
refactor(otp-generator): no more barcode color invertion
-rw-r--r--src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue5
1 files changed, 4 insertions, 1 deletions
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 3521c23..52745d4 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 },
});