Bluesky app fork with some witchin' additions 馃挮 witchsky.app
bluesky fork client
at main 20 lines 629 B view raw
1import * as SystemUI from 'expo-system-ui' 2import {type Theme} from '@bsky.app/alf' 3 4import {logger} from '#/logger' 5import {IS_ANDROID} from '#/env' 6 7export function setSystemUITheme(themeType: 'theme' | 'lightbox', t: Theme) { 8 if (IS_ANDROID) { 9 try { 10 if (themeType === 'theme') { 11 SystemUI.setBackgroundColorAsync(t.atoms.bg.backgroundColor) 12 } else { 13 SystemUI.setBackgroundColorAsync('black') 14 } 15 } catch (error) { 16 // Can reject with 'The current activity is no longer available' - no big deal 17 logger.debug('Could not set system UI theme', {safeMessage: error}) 18 } 19 } 20}