From 778d626e5ca58f62b75ef070c5c347afa89a6de4 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 26 Aug 2023 17:40:59 -0700 Subject: Dark mode support (fix #1129) --- modern/src/settings/PreferencesPage.jsx | 84 +++++++++++++++++---------------- 1 file changed, 44 insertions(+), 40 deletions(-) (limited to 'modern/src/settings') diff --git a/modern/src/settings/PreferencesPage.jsx b/modern/src/settings/PreferencesPage.jsx index b83e7095..15fd762a 100644 --- a/modern/src/settings/PreferencesPage.jsx +++ b/modern/src/settings/PreferencesPage.jsx @@ -114,48 +114,9 @@ const PreferencesPage = () => { return ( } breadcrumbs={['settingsTitle', 'sharedPreferences']}> - - }> - - {t('userToken')} - - - - { - setTokenExpiration(e.target.value); - setToken(null); - }} - /> - - -
- - - - navigator.clipboard.writeText(token)} disabled={!token}> - - -
- - )} - /> -
-
-
{!readonly && ( <> - + }> {t('mapTitle')} @@ -346,6 +307,49 @@ const PreferencesPage = () => { /> + + )} + + }> + + {t('userToken')} + + + + { + setTokenExpiration(e.target.value); + setToken(null); + }} + /> + + +
+ + + + navigator.clipboard.writeText(token)} disabled={!token}> + + +
+ + )} + /> +
+
+
+ {!readonly && ( + <> }> -- cgit v1.2.3