From a43e9f2e22bce97017aeb218838b16aab9390ee0 Mon Sep 17 00:00:00 2001
From: sowgro <tpoke.ferrari@gmail.com>
Date: Tue, 5 Nov 2024 18:55:50 -0500
Subject: Background URL option

---
 extension/src/SettingsEditor.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'extension/src/SettingsEditor.tsx')

diff --git a/extension/src/SettingsEditor.tsx b/extension/src/SettingsEditor.tsx
index f803fc3..a5b9224 100644
--- a/extension/src/SettingsEditor.tsx
+++ b/extension/src/SettingsEditor.tsx
@@ -4,7 +4,7 @@ import imageUrl from "./assets/close.svg"
 import BookmarkTreeNode = browser.bookmarks.BookmarkTreeNode;
 import {RootFolder} from "./Body.tsx";
 
-function SettingsEditor(props: {tree: BookmarkTreeNode[], closer: (arg0: boolean) => void}) {
+function SettingsEditor(props: {tree: BookmarkTreeNode[], closer: (arg0: boolean) => void, setBackgroundURL: (arg0: string) => void}) {
     const [backgroundType, setBackgroundType] = useState("fromTheme");
     const [sort, setSort] = useState("fromBookmarks");
     const {rootFolder, setRootFolder} = useContext(RootFolder)
@@ -35,6 +35,9 @@ function SettingsEditor(props: {tree: BookmarkTreeNode[], closer: (arg0: boolean
                 <option value={"image"}>Image</option>
             </RadioButtonGroup>
 
+            <h3>Background URL</h3>
+            <input type={"url"} onChange={e => props.setBackgroundURL(e.target.value)}/>
+
             <h3>Edit mode</h3>
             <label>
                 <input type={"checkbox"}/>
-- 
cgit v1.2.3

