From 62c6da3b9f592aad6b34800c02bc36523b946bb2 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Fri, 30 Dec 2022 15:11:47 -0600 Subject: [PATCH] Integrate settings into design system and some various fixes/tweaks --- src/view/screens/Settings.tsx | 17 ++++++++++------- src/view/shell/mobile/Menu.tsx | 2 +- src/view/shell/mobile/index.tsx | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/view/screens/Settings.tsx b/src/view/screens/Settings.tsx index d3fcdfdf..d7565e9c 100644 --- a/src/view/screens/Settings.tsx +++ b/src/view/screens/Settings.tsx @@ -8,11 +8,13 @@ import {ViewHeader} from '../com/util/ViewHeader' import {Link} from '../com/util/Link' import {Text} from '../com/util/text/Text' import {UserAvatar} from '../com/util/UserAvatar' +import {usePalette} from '../lib/hooks/usePalette' export const Settings = observer(function Settings({ navIdx, visible, }: ScreenParams) { + const pal = usePalette('default') const store = useStores() useEffect(() => { @@ -32,17 +34,19 @@ export const Settings = observer(function Settings({ - Signed in as + Signed in as - Sign out + + Sign out + - + - + {store.me.displayName || store.me.handle} - @{store.me.handle} + @{store.me.handle} - Debug tools + Debug tools @@ -75,7 +79,6 @@ const styles = StyleSheet.create({ profile: { flexDirection: 'row', marginVertical: 6, - backgroundColor: colors.white, borderRadius: 4, paddingVertical: 10, paddingHorizontal: 10, diff --git a/src/view/shell/mobile/Menu.tsx b/src/view/shell/mobile/Menu.tsx index 5a97c9f2..12bafe2f 100644 --- a/src/view/shell/mobile/Menu.tsx +++ b/src/view/shell/mobile/Menu.tsx @@ -145,7 +145,7 @@ export const Menu = ({ icon={} size="28" />} label="Notifications" url="/notifications" - count={store.me.notificationCount || 10} + count={store.me.notificationCount} /> diff --git a/src/view/shell/mobile/index.tsx b/src/view/shell/mobile/index.tsx index 8d589997..7b96c87b 100644 --- a/src/view/shell/mobile/index.tsx +++ b/src/view/shell/mobile/index.tsx @@ -346,7 +346,7 @@ export const MobileShell: React.FC = observer(() => { const isAtNotifications = store.nav.tab.current.url === '/notifications' const screenBg = { - backgroundColor: theme.colorScheme === 'dark' ? colors.black : colors.gray1, + backgroundColor: theme.colorScheme === 'dark' ? colors.gray7 : colors.gray1, } return (