Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

use color scheme in in-app browser (#2580)

authored by

Hailey and committed by
GitHub
6569f8a8 010e94a6

+4 -1
+4 -1
src/state/preferences/in-app-browser.tsx
··· 4 4 import * as WebBrowser from 'expo-web-browser' 5 5 import {isNative} from '#/platform/detection' 6 6 import {useModalControls} from '../modals' 7 + import {usePalette} from 'lib/hooks/usePalette' 7 8 8 9 type StateContext = persisted.Schema['useInAppBrowser'] 9 10 type SetContext = (v: persisted.Schema['useInAppBrowser']) => void ··· 52 53 export function useOpenLink() { 53 54 const {openModal} = useModalControls() 54 55 const enabled = useInAppBrowser() 56 + const pal = usePalette('default') 55 57 56 58 const openLink = React.useCallback( 57 59 (url: string, override?: boolean) => { ··· 66 68 WebBrowser.openBrowserAsync(url, { 67 69 presentationStyle: 68 70 WebBrowser.WebBrowserPresentationStyle.FULL_SCREEN, 71 + toolbarColor: pal.colors.backgroundLight, 69 72 }) 70 73 return 71 74 } 72 75 } 73 76 Linking.openURL(url) 74 77 }, 75 - [enabled, openModal], 78 + [enabled, openModal, pal.colors.backgroundLight], 76 79 ) 77 80 78 81 return openLink