From b5c64a03b6cf91fb1699d2e87d3fded43a5dbb46 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 13 Mar 2023 21:46:16 -0500 Subject: Notification count fixes --- src/view/shell/BottomBar.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/view/shell/BottomBar.tsx') diff --git a/src/view/shell/BottomBar.tsx b/src/view/shell/BottomBar.tsx index 18b06968f..8db151c5a 100644 --- a/src/view/shell/BottomBar.tsx +++ b/src/view/shell/BottomBar.tsx @@ -26,6 +26,7 @@ import { } from 'lib/icons' import {colors} from 'lib/styles' import {usePalette} from 'lib/hooks/usePalette' +import {useColorSchemeStyle} from 'lib/hooks/useColorSchemeStyle' import {getTabState, TabState} from 'lib/routes/helpers' export const BottomBar = observer(({navigation}: BottomTabBarProps) => { @@ -186,6 +187,10 @@ function Btn({ onPress?: (event: GestureResponderEvent) => void onLongPress?: (event: GestureResponderEvent) => void }) { + const borderStyle = useColorSchemeStyle( + styles.notificationCountLight, + styles.notificationCountDark, + ) return ( {notificationCount ? ( - + {notificationCount} ) : undefined} @@ -221,13 +226,20 @@ const styles = StyleSheet.create({ notificationCount: { position: 'absolute', left: '52%', - top: 10, + top: 8, backgroundColor: colors.blue3, paddingHorizontal: 4, paddingBottom: 1, - borderRadius: 8, + borderRadius: 6, + borderWidth: 2, zIndex: 1, }, + notificationCountLight: { + borderColor: colors.white, + }, + notificationCountDark: { + borderColor: colors.gray8, + }, notificationCountLabel: { fontSize: 12, fontWeight: 'bold', -- cgit 1.4.1