diff --git a/src/hooks/useCommonHooks.ts b/src/hooks/useCommonHooks.ts index efd4e70..6d9d199 100644 --- a/src/hooks/useCommonHooks.ts +++ b/src/hooks/useCommonHooks.ts @@ -11,7 +11,7 @@ export function useCommonHooks() { const [theme, setTheme] = useAtom(appTheme); const [themeName, setThemeName] = useLocalStorage({ key: 'theme', - defaultValue: 'blackboard', + defaultValue: 'random', }); const [appFilter, setAppFilter] = useLocalStorage({ key: 'appFilter', @@ -35,11 +35,11 @@ export function useCommonHooks() { }); const [bookmarkDensity, setBookmarkDensity] = useLocalStorage({ key: 'bookmarkDensity', - defaultValue: 5, + defaultValue: 6, }); const [currentTheme, setCurrentTheme] = useLocalStorage({ key: 'theme', - defaultValue: 'blackboard', + defaultValue: 'random', }); const [currentThemePlaylist, setCurrentThemePlaylist] = useLocalStorage({ key: 'themePlaylist', diff --git a/src/pages/settings/components/Theming/ThemeModal.tsx b/src/pages/settings/components/Theming/ThemeModal.tsx index cc58f74..08469f0 100644 --- a/src/pages/settings/components/Theming/ThemeModal.tsx +++ b/src/pages/settings/components/Theming/ThemeModal.tsx @@ -14,7 +14,7 @@ import { import { useCommonHooks } from 'hooks'; import { useEffect, useRef, useState } from 'react'; import { FiSave, FiX } from 'react-icons/fi'; -import { modalClasses, textClasses, textInputClasses } from 'styles'; +import { modalClasses, scrollAreaClasses, textClasses, textInputClasses } from 'styles'; import type { Theme } from 'types'; import ThemeModalContent from './ThemeModalContent'; @@ -56,63 +56,65 @@ function ThemeModal({ ); const re = /(?:\.([^.]+))?$/; - const items = filtered.map((item: string, index: number) => ( - - setSelectedTheme({ - ...selectedTheme, - backgroundImage: item, - }) - } - > - - - {item.replace(/\.[^/.]+$/, '')} - - {item !== 'None' && ( + const items = filtered.map((item: string, index: number) => { + return ( + + setSelectedTheme({ + ...selectedTheme, + backgroundImage: item, + }) + } + > + - {re.exec(item.toUpperCase())?.[1]} + {item.replace(/\.[^/.]+$/, '')} - )} - - - )); + {item !== 'None' && ( + + {re.exec(item.toUpperCase())?.[1]} + + )} + + + ); + }); useEffect(() => { if (selectedTheme) { @@ -393,6 +395,8 @@ function ThemeModal({ @@ -96,7 +96,7 @@ function ThemePlaylistCard({ color: theme.borderColor === theme.primaryColor ? 'var(--mantine-color-accent-0)' - : 'var(--mantine-color-background-0)', + : 'var(--mantine-color-primary-0)', zIndex: 3, }} onClick={() => { @@ -119,7 +119,7 @@ function ThemePlaylistCard({ color: theme.borderColor === theme.primaryColor ? 'var(--mantine-color-accent-0)' - : 'var(--mantine-color-background-0)', + : 'var(--mantine-color-red-6)', zIndex: 3, }} onClick={() => { diff --git a/src/pages/settings/components/Theming/ThemePlaylists.tsx b/src/pages/settings/components/Theming/ThemePlaylists.tsx index 98e87e1..b96a03c 100644 --- a/src/pages/settings/components/Theming/ThemePlaylists.tsx +++ b/src/pages/settings/components/Theming/ThemePlaylists.tsx @@ -128,7 +128,7 @@ function ThemePlaylists() { color: theme.borderColor === theme.primaryColor ? 'var(--mantine-color-accent-0)' - : 'var(--mantine-color-background-0)', + : 'var(--mantine-color-primary-0)', }} /> )} diff --git a/src/styles/Button.module.css b/src/styles/Button.module.css index 580cb36..0898e45 100644 --- a/src/styles/Button.module.css +++ b/src/styles/Button.module.css @@ -52,7 +52,7 @@ padding: .5rem; margin: 0; background-color: var(--mantine-color-search-0); - color: var(--mantine-color-accent-0); + color: var(--mantine-color-primary-0); } &:hover { background-color: var(--mantine-color-primary-0) !important;