@@ -37,9 +37,9 @@ const SettingsPage = () => {
3737 isInverted, toggleInvert,
3838 isRetro, toggleRetro,
3939 isParty, toggleParty,
40- isMirror, toggleMirror
40+ isMirror, toggleMirror,
41+ isNoir, toggleNoir
4142 } = useVisualSettings ( ) ;
42-
4343 const { addToast} = useToast ( ) ;
4444 const handleResetSidebarState = ( ) => {
4545 removeLocalStorageItem ( KEY_SIDEBAR_STATE ) ;
@@ -48,11 +48,11 @@ const SettingsPage = () => {
4848 message : 'Sidebar state has been reset. The page will now reload.' ,
4949 duration : 3000 ,
5050 } ) ;
51-
5251 setTimeout ( ( ) => {
5352 window . location . reload ( ) ;
5453 } , 3000 ) ;
5554 } ;
55+
5656 const handleResetAppsState = ( ) => {
5757 removeLocalStorageItem ( KEY_APPS_COLLAPSED_CATEGORIES ) ;
5858 addToast ( {
@@ -80,8 +80,12 @@ const SettingsPage = () => {
8080 < ArrowLeftIcon className = "text-xl transition-transform group-hover:-translate-x-1" /> Back to Home
8181 </ Link >
8282 < div className = "mx-auto max-w-2xl text-center" >
83- < h1 className = "text-4xl font-semibold tracking-tight text-white sm:text-6xl" > Settings </ h1 >
84- < p className = "mt-6 text-lg leading-8 text-gray-300" > Manage your application preferences. </ p >
83+ < h1 className = "text-4xl font-semibold tracking-tight text-white sm:text-6xl" >
84+ Settings
85+ </ h1 >
86+ < p className = "mt-6 text-lg leading-8 text-gray-300" >
87+ Manage your application preferences.
88+ </ p >
8589 </ div >
8690 < div className = "flex justify-center items-center mt-16" >
8791 < div
@@ -110,9 +114,11 @@ const SettingsPage = () => {
110114 < span className = "block sm:inline ml-2" >
111115 Your preferences are stored locally in your browser. No data
112116 is sent to any server.
113- </ span >
117+ </ span >
114118 </ div >
115- < h1 className = "text-3xl font-arvo font-normal mb-4 text-app" > Animation Settings </ h1 >
119+ < h1 className = "text-3xl font-arvo font-normal mb-4 text-app" >
120+ Animation Settings
121+ </ h1 >
116122 < hr className = "border-gray-700 mb-4" />
117123 < div className = "mb-6 ml-4 mr-4" >
118124 < CustomToggle
@@ -187,6 +193,14 @@ const SettingsPage = () => {
187193 checked = { isMirror }
188194 onChange = { toggleMirror }
189195 />
196+ < div className = "mb-4" > </ div >
197+ < CustomToggle
198+ id = "enable-noir-mode"
199+ label = "> Noir Mode"
200+ checked = { isNoir }
201+ onChange = { toggleNoir }
202+ />
203+
190204 </ div >
191205 { /* Sidebar Stuff */ }
192206 < h1 className = "text-3xl font-arvo font-normal mb-4 text-app" >
0 commit comments