From ffd55641317ebd6344e92eb8a3204981846b5e05 Mon Sep 17 00:00:00 2001
From: 135e2 <135e2@135e2.tk>
Date: Tue, 9 Aug 2022 00:34:26 +0800
Subject: feat(SettingsPage): add backgroundImage customization

---
 src/App.vue | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 67915be..f121977 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -54,6 +54,7 @@
           v-else-if="atSettings"
           @update-title-size="updateTitleSize"
           @update-content-size="updateContentSize"
+          @update-background-image-url="updateBackgroundImageURL"
           :realTitleSize="parseInt(titleSize)"
           :realContentSize="contentSize"
         />
@@ -93,7 +94,7 @@ export default {
     snackbarText: "Default snackbar text (End-user shouldn't see this)",
     bg: {
       // backgroundColor: "grey",
-      // backgroundImage: "url(https://wallpapercave.com/wp/wp9649930.jpg)",
+      backgroundImage: "",
       backgroundPosition: "center",
     },
   }),
@@ -124,6 +125,9 @@ export default {
     updateContentSize(s) {
       this.contentSize = s;
     },
+    updateBackgroundImageURL(s) {
+      this.bg.backgroundImage = s ? `url(${s})` : "";
+    },
   },
 };
 </script>
-- 
cgit v1.2.3

