summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-27 21:45:26 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-09-27 21:45:26 +0200
commitbabd0c7cf07f7ef81156d9c272d22e3befc86c1c (patch)
tree91f93b753cbb8c2683e316b7f09fbcecbe30862f
parent0f82d38f6d487aee568cfbab223cbfcf6324c65f (diff)
Fix preview bg
-rw-r--r--components/FilePreview.vue6
1 files changed, 3 insertions, 3 deletions
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: {