From babd0c7cf07f7ef81156d9c272d22e3befc86c1c Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 27 Sep 2022 21:45:26 +0200 Subject: Fix preview bg --- components/FilePreview.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components') diff --git a/components/FilePreview.vue b/components/FilePreview.vue index 878ca5b..9708197 100644 --- a/components/FilePreview.vue +++ b/components/FilePreview.vue @@ -42,10 +42,10 @@ export default { }, created() { this.baseAPI = this.$config.api; - if (this.$colorMode.preference == "light") { - this.color = this.bg; - } else { + if (this.$colorMode.preference == "dark") { this.color = "#ecfdf5"; + } else { + this.color = this.bg; } }, methods: { -- cgit v1.2.3-18-g5258