Bluesky app fork with some witchin' additions 💫

add transparency prop to tab bar (#9336)

authored by samuel.fm and committed by GitHub d464cde4 a35a81a5

Changed files
+9 -2
src
components
Layout
Header
view
+4 -1
src/components/Layout/Header/index.tsx
··· 163 163 shape="square" 164 164 onPress={onPress} 165 165 hitSlop={HITSLOP_30} 166 - style={[{marginLeft: -BUTTON_VISUAL_ALIGNMENT_OFFSET}]}> 166 + style={[ 167 + {marginLeft: -BUTTON_VISUAL_ALIGNMENT_OFFSET}, 168 + a.bg_transparent, 169 + ]}> 167 170 <ButtonIcon icon={Menu} size="lg" /> 168 171 </Button> 169 172 </Slot>
+1
src/view/com/home/HomeHeader.tsx
··· 61 61 items={items} 62 62 dragProgress={props.dragProgress} 63 63 dragState={props.dragState} 64 + transparent 64 65 /> 65 66 </HomeHeaderLayout> 66 67 )
+1
src/view/com/home/HomeHeaderLayoutMobile.tsx
··· 77 77 style={[ 78 78 a.justify_center, 79 79 {marginRight: -Layout.BUTTON_VISUAL_ALIGNMENT_OFFSET}, 80 + a.bg_transparent, 80 81 ]}> 81 82 <ButtonIcon icon={FeedsIcon} size="lg" /> 82 83 </Link>
+3 -1
src/view/com/pager/TabBar.tsx
··· 30 30 onPressSelected?: (index: number) => void 31 31 dragProgress: SharedValue<number> 32 32 dragState: SharedValue<'idle' | 'dragging' | 'settling'> 33 + transparent?: boolean 33 34 } 34 35 35 36 const ITEM_PADDING = 10 ··· 46 47 onPressSelected, 47 48 dragProgress, 48 49 dragState, 50 + transparent, 49 51 }: TabBarProps) { 50 52 const t = useTheme() 51 53 const scrollElRef = useAnimatedRef<ScrollView>() ··· 313 315 return ( 314 316 <View 315 317 testID={testID} 316 - style={[t.atoms.bg, a.flex_row]} 318 + style={[!transparent && t.atoms.bg, a.flex_row]} 317 319 accessibilityRole="tablist"> 318 320 <BlockDrawerGesture> 319 321 <ScrollView