[Layout] Bleed profile banner into safe area (#6967)
* bleed profile banner into safe area (cherry picked from commit 50b3a4d0c6fd94b583ffe4efa65de35c81ae7f4e) * pointer events none when hidden (cherry picked from commit bae2c7b2dd6d7f858a98812196628308c0877755) * fix web (cherry picked from commit e3f9597170375f2903b6e567b963f008ec95aed1) * add status bar shadow * rm log * rm mini header * speed up animation * pass bool rather than int in light status bar
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
useIsDrawerSwipeDisabled,
|
||||
useSetDrawerOpen,
|
||||
} from '#/state/shell'
|
||||
import {useLightStatusBar} from '#/state/shell/light-status-bar'
|
||||
import {useCloseAnyActiveElement} from '#/state/util'
|
||||
import {Lightbox} from '#/view/com/lightbox/Lightbox'
|
||||
import {ModalsContainer} from '#/view/com/modals/Modal'
|
||||
@@ -154,6 +155,7 @@ function ShellInner() {
|
||||
|
||||
export const Shell: React.FC = function ShellImpl() {
|
||||
const {fullyExpandedCount} = useDialogStateControlContext()
|
||||
const lightStatusBar = useLightStatusBar()
|
||||
const t = useTheme()
|
||||
useIntentHandler()
|
||||
|
||||
@@ -165,7 +167,9 @@ export const Shell: React.FC = function ShellImpl() {
|
||||
<View testID="mobileShellView" style={[a.h_full, t.atoms.bg]}>
|
||||
<StatusBar
|
||||
style={
|
||||
t.name !== 'light' || (isIOS && fullyExpandedCount > 0)
|
||||
t.name !== 'light' ||
|
||||
(isIOS && fullyExpandedCount > 0) ||
|
||||
lightStatusBar
|
||||
? 'light'
|
||||
: 'dark'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user