From f50f07f562b82e15be28aa750d7e45629081faa3 Mon Sep 17 00:00:00 2001 From: Ansh Date: Wed, 12 Apr 2023 18:49:40 -0700 Subject: #435 web dark mode (#455) * add ThemeProvider to App.web.tsx * make FlatNavigator use themed color * fix extra padding on top in web * add observer to App.web.tsx to make it react to theme changes * fix TS for useColorSchemeStyle * add dark mode toggle button to web LeftNav * fix index.web.tsx border colors for web * Move the darkmode desktop web toggle to the right nav column --------- Co-authored-by: Paul Frazee --- src/Navigation.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Navigation.tsx') diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 648859f16..0de31a4ad 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -40,6 +40,7 @@ import {PrivacyPolicyScreen} from './view/screens/PrivacyPolicy' import {TermsOfServiceScreen} from './view/screens/TermsOfService' import {CommunityGuidelinesScreen} from './view/screens/CommunityGuidelines' import {CopyrightPolicyScreen} from './view/screens/CopyrightPolicy' +import {usePalette} from 'lib/hooks/usePalette' const navigationRef = createNavigationContainerRef() @@ -162,6 +163,7 @@ function NotificationsTabNavigator() { * in a single ("flat") stack. */ function FlatNavigator() { + const pal = usePalette('default') return ( -- cgit 1.4.1