diff --git a/src/@types/react-navigation.d.ts b/src/@types/react-navigation.d.ts index a87a6078..58d7b2f1 100644 --- a/src/@types/react-navigation.d.ts +++ b/src/@types/react-navigation.d.ts @@ -1,4 +1,6 @@ declare namespace Nav { + import { QueryKeyTimeline } from '@utils/queryHooks/timeline' + type RootStackParamList = { 'Screen-Tabs': undefined 'Screen-Actions': @@ -90,7 +92,7 @@ declare namespace Nav { 'Tab-Shared-Search': { text: string | undefined } 'Tab-Shared-Toot': { toot: Mastodon.Status - rootQueryKey: any + rootQueryKey?: QueryKeyTimeline } 'Tab-Shared-Users': | { diff --git a/src/Screens.tsx b/src/Screens.tsx index f63b52ac..f5c9c232 100644 --- a/src/Screens.tsx +++ b/src/Screens.tsx @@ -144,7 +144,7 @@ const Screens: React.FC = ({ localCorrupt }) => { return ( <> - + = ({ if (destructive) { return theme.red } else { - return theme.primary + return theme.primaryDefault } } } @@ -97,16 +97,16 @@ const Button: React.FC = ({ if (destructive) { return theme.red } else { - return theme.primary + return theme.primaryDefault } } } }, [mode, loading, disabled]) const colorBackground = useMemo(() => { if (overlay) { - return theme.backgroundOverlay + return theme.backgroundOverlayInvert } else { - return theme.background + return theme.backgroundDefault } }, [mode]) diff --git a/src/components/Hashtag.tsx b/src/components/Hashtag.tsx index ebc45430..914896a4 100644 --- a/src/components/Hashtag.tsx +++ b/src/components/Hashtag.tsx @@ -29,7 +29,7 @@ const ComponentHashtag: React.FC = ({ return ( - + #{hashtag.name} diff --git a/src/components/Header/Center.tsx b/src/components/Header/Center.tsx index 6edae7aa..74c93c25 100644 --- a/src/components/Header/Center.tsx +++ b/src/components/Header/Center.tsx @@ -17,7 +17,7 @@ const HeaderCenter = React.memo( diff --git a/src/components/Header/Left.tsx b/src/components/Header/Left.tsx index 7fea3d82..4269383b 100644 --- a/src/components/Header/Left.tsx +++ b/src/components/Header/Left.tsx @@ -25,7 +25,7 @@ const HeaderLeft: React.FC = ({ case 'icon': return ( @@ -33,7 +33,7 @@ const HeaderLeft: React.FC = ({ case 'text': return ( ) @@ -47,7 +47,7 @@ const HeaderLeft: React.FC = ({ style={[ styles.base, { - backgroundColor: theme.backgroundGradientStart, + backgroundColor: theme.backgroundOverlayDefault, ...(type === 'icon' && { height: 44, width: 44, diff --git a/src/components/Header/Right.tsx b/src/components/Header/Right.tsx index 81438a6e..1e40f44a 100644 --- a/src/components/Header/Right.tsx +++ b/src/components/Header/Right.tsx @@ -47,7 +47,7 @@ const HeaderRight: React.FC = ({ name={content} style={{ opacity: loading ? 0 : 1 }} size={StyleConstants.Spacing.M * 1.25} - color={disabled ? theme.secondary : theme.primary} + color={disabled ? theme.secondary : theme.primaryDefault} /> {loading && loadingSpinkit} @@ -59,7 +59,7 @@ const HeaderRight: React.FC = ({ style={[ styles.text, { - color: disabled ? theme.secondary : theme.primary, + color: disabled ? theme.secondary : theme.primaryDefault, opacity: loading ? 0 : 1 } ]} @@ -79,7 +79,7 @@ const HeaderRight: React.FC = ({ style={[ styles.base, { - backgroundColor: theme.backgroundGradientStart, + backgroundColor: theme.backgroundOverlayDefault, ...(type === 'icon' && { height: 44, width: 44, diff --git a/src/components/Instance.tsx b/src/components/Instance.tsx index c880c972..deba3c5d 100644 --- a/src/components/Instance.tsx +++ b/src/components/Instance.tsx @@ -142,7 +142,7 @@ const ComponentInstance: React.FC = ({ style={[ styles.textInput, { - color: theme.primary, + color: theme.primaryDefault, borderBottomColor: instanceQuery.isError ? theme.red : theme.border diff --git a/src/components/Instance/Info.tsx b/src/components/Instance/Info.tsx index b651e90f..b0286465 100644 --- a/src/components/Instance/Info.tsx +++ b/src/components/Instance/Info.tsx @@ -17,9 +17,9 @@ const InstanceInfo = React.memo( return ( - {header} + {header} {content ? ( - + {content} ) : ( diff --git a/src/components/Menu/Row.tsx b/src/components/Menu/Row.tsx index f8664cae..d728849f 100644 --- a/src/components/Menu/Row.tsx +++ b/src/components/Menu/Row.tsx @@ -28,7 +28,7 @@ export interface Props { const MenuRow: React.FC = ({ iconFront, - iconFrontColor = 'primary', + iconFrontColor = 'primaryDefault', title, description, content, @@ -73,7 +73,7 @@ const MenuRow: React.FC = ({ )} {title} diff --git a/src/components/Message.tsx b/src/components/Message.tsx index 83053d13..bb80e29c 100644 --- a/src/components/Message.tsx +++ b/src/components/Message.tsx @@ -87,18 +87,18 @@ const Message = React.memo( position='top' floating style={{ - backgroundColor: theme.background, - shadowColor: theme.primary, + backgroundColor: theme.backgroundDefault, + shadowColor: theme.primaryDefault, shadowOffset: { width: 0, height: 0 }, shadowOpacity: mode === 'light' ? 0.16 : 0.24, shadowRadius: 4 }} titleStyle={{ - color: theme.primary, + color: theme.primaryDefault, ...StyleConstants.FontStyle.M, fontWeight: StyleConstants.Font.Weight.Bold }} - textStyle={{ color: theme.primary, ...StyleConstants.FontStyle.S }} + textStyle={{ color: theme.primaryDefault, ...StyleConstants.FontStyle.S }} // @ts-ignore textProps={{ numberOfLines: 2 }} /> diff --git a/src/components/Parse/Emojis.tsx b/src/components/Parse/Emojis.tsx index c27d4407..9e2e3130 100644 --- a/src/components/Parse/Emojis.tsx +++ b/src/components/Parse/Emojis.tsx @@ -38,7 +38,7 @@ const ParseEmojis = React.memo( const styles = useMemo(() => { return StyleSheet.create({ text: { - color: theme.primary, + color: theme.primaryDefault, fontSize: adaptedFontsize, lineHeight: adaptedLineheight, ...(fontBold && { fontWeight: StyleConstants.Font.Weight.Bold }) diff --git a/src/components/Parse/HTML.tsx b/src/components/Parse/HTML.tsx index 456daf09..3a1f6449 100644 --- a/src/components/Parse/HTML.tsx +++ b/src/components/Parse/HTML.tsx @@ -83,7 +83,7 @@ const renderNode = ({ = ({ refreshControl: ( refetch()} /> diff --git a/src/components/Timeline/Conversation.tsx b/src/components/Timeline/Conversation.tsx index eb10058d..871709bb 100644 --- a/src/components/Timeline/Conversation.tsx +++ b/src/components/Timeline/Conversation.tsx @@ -95,7 +95,7 @@ const TimelineConversation: React.FC = ({ = ({ style={[ styles.statusView, { - backgroundColor: theme.background, + backgroundColor: theme.backgroundDefault, paddingBottom: disableDetails && disableOnPress ? StyleConstants.Spacing.Global.PagePadding diff --git a/src/components/Timeline/Empty.tsx b/src/components/Timeline/Empty.tsx index afaa9376..18d9378a 100644 --- a/src/components/Timeline/Empty.tsx +++ b/src/components/Timeline/Empty.tsx @@ -35,9 +35,9 @@ const TimelineEmpty = React.memo( - + {t('empty.error.message')}