From a6ec8dab0bb8f037436093c435d381816acde696 Mon Sep 17 00:00:00 2001 From: Sean Edmunds Date: Thu, 19 Jun 2025 13:06:02 -0500 Subject: [PATCH] Background updates --- src/pages/settings/Settings.tsx | 50 +++++++++-- .../components/Theming/BackgroundModal.tsx | 83 +++++++++++++------ src/styles/ScrollArea.module.css | 6 ++ src/styles/index.ts | 2 + 4 files changed, 108 insertions(+), 33 deletions(-) create mode 100644 src/styles/ScrollArea.module.css diff --git a/src/pages/settings/Settings.tsx b/src/pages/settings/Settings.tsx index 9d0ecd7..5bc6043 100644 --- a/src/pages/settings/Settings.tsx +++ b/src/pages/settings/Settings.tsx @@ -11,7 +11,7 @@ import { FiUser, } from 'react-icons/fi'; import { useNavigate, useParams } from 'react-router-dom'; -import { actionIconClasses, tabClasses, textClasses } from 'styles'; +import { actionIconClasses, scrollAreaClasses, tabClasses, textClasses } from 'styles'; import Applications from './components/Applications/Applications'; import Bookmarks from './components/Bookmarks/Bookmarks'; import Messages from './components/Messages/Messages'; @@ -79,42 +79,74 @@ export function Settings() { - + - + - + - + - + - + - + - + diff --git a/src/pages/settings/components/Theming/BackgroundModal.tsx b/src/pages/settings/components/Theming/BackgroundModal.tsx index 68593de..7271230 100644 --- a/src/pages/settings/components/Theming/BackgroundModal.tsx +++ b/src/pages/settings/components/Theming/BackgroundModal.tsx @@ -4,6 +4,7 @@ import { Card, FileInput, Group, + Image, Modal, ScrollArea, SimpleGrid, @@ -13,7 +14,7 @@ import { useCommonHooks } from 'hooks'; import { useFileUploadAPI, useMutationAPI } from 'hooks/useAPI'; import { useState } from 'react'; import { FiTrash } from 'react-icons/fi'; -import { modalClasses } from 'styles'; +import { modalClasses, scrollAreaClasses } from 'styles'; function BackgroundModal({ backgroundModalOpened, @@ -34,9 +35,10 @@ function BackgroundModal({ setErr(false); setBackground(e); }; + console.log(background); return ( @@ -96,8 +103,8 @@ function BackgroundModal({ }} /> - + + + + {background ? ( + + ) : ( + + )} + +