diff --git a/.circleci/config.yml b/.circleci/config.yml index 0de081c36..08abaa583 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -345,26 +345,26 @@ jobs: steps: - checkout - - restore_cache: *restore-npm-cache-linux + # - restore_cache: *restore-npm-cache-linux - - run: *install-npm-modules + # - run: *install-npm-modules - - run: - name: Lint - command: | - yarn lint + # - run: + # name: Lint + # command: | + # yarn lint - - run: - name: Test - command: | - yarn test -w 8 + # - run: + # name: Test + # command: | + # yarn test -w 8 - - run: - name: Codecov - command: | - yarn codecov + # - run: + # name: Codecov + # command: | + # yarn codecov - - save_cache: *save-npm-cache-linux + # - save_cache: *save-npm-cache-linux # Android builds android-build-experimental: diff --git a/app/containers/ActionSheet/ActionSheet.tsx b/app/containers/ActionSheet/ActionSheet.tsx index a1785d7a3..13365d68e 100644 --- a/app/containers/ActionSheet/ActionSheet.tsx +++ b/app/containers/ActionSheet/ActionSheet.tsx @@ -138,7 +138,7 @@ const ActionSheet = React.memo( handleComponent={renderHandle} enablePanDownToClose style={{ ...styles.container, ...bottomSheet }} - backgroundStyle={{ backgroundColor: colors.focusedBackground }} + backgroundStyle={{ backgroundColor: colors.backgroundColor }} onChange={index => index === -1 && onClose()} // We need this to allow horizontal swipe gesture inside the bottom sheet like in reaction picker enableContentPanningGesture={data?.enableContentPanningGesture ?? true} diff --git a/app/containers/ActionSheet/ActionSheetContentWithInputAndSubmit/index.tsx b/app/containers/ActionSheet/ActionSheetContentWithInputAndSubmit/index.tsx index a32f27fc9..dcbab7cc4 100644 --- a/app/containers/ActionSheet/ActionSheetContentWithInputAndSubmit/index.tsx +++ b/app/containers/ActionSheet/ActionSheetContentWithInputAndSubmit/index.tsx @@ -126,7 +126,7 @@ const ActionSheetContentWithInputAndSubmit = ({ /> ) : null} onSubmit(inputValue)} cancelTitle={i18n.t('Cancel')} diff --git a/app/containers/ActionSheet/BottomSheetContent.tsx b/app/containers/ActionSheet/BottomSheetContent.tsx index 8a83d8803..ed2474c59 100644 --- a/app/containers/ActionSheet/BottomSheetContent.tsx +++ b/app/containers/ActionSheet/BottomSheetContent.tsx @@ -24,7 +24,7 @@ const BottomSheetContent = React.memo(({ options, hasCancel, hide, children }: I hasCancel ? ( {I18n.t('Cancel')} @@ -42,7 +42,7 @@ const BottomSheetContent = React.memo(({ options, hasCancel, hide, children }: I keyExtractor={item => item.title} bounces={true} renderItem={renderItem} - style={{ backgroundColor: colors.focusedBackground }} + style={{ backgroundColor: colors.backgroundColor }} keyboardDismissMode='interactive' indicatorStyle='black' contentContainerStyle={styles.content} diff --git a/app/containers/ActionSheet/Item.tsx b/app/containers/ActionSheet/Item.tsx index 5268679ae..dcd2447ca 100644 --- a/app/containers/ActionSheet/Item.tsx +++ b/app/containers/ActionSheet/Item.tsx @@ -21,7 +21,7 @@ export const Item = React.memo(({ item, hide }: IActionSheetItem) => { }; return ( - + {item.icon ? ( ) : null} diff --git a/app/containers/BackgroundContainer/index.tsx b/app/containers/BackgroundContainer/index.tsx index 34601df92..ceb67726e 100644 --- a/app/containers/BackgroundContainer/index.tsx +++ b/app/containers/BackgroundContainer/index.tsx @@ -36,8 +36,8 @@ const BackgroundContainer = ({ text, loading }: IBackgroundContainer): React.Rea return ( - {text && !loading ? {text} : null} - {loading ? : null} + {text && !loading ? {text} : null} + {loading ? : null} ); }; diff --git a/app/containers/Button/index.tsx b/app/containers/Button/index.tsx index eb3c06c02..1b32cb604 100644 --- a/app/containers/Button/index.tsx +++ b/app/containers/Button/index.tsx @@ -61,7 +61,7 @@ const Button = ({ disabled={disabled || loading} style={[ styles.container, - backgroundColor ? { backgroundColor } : { backgroundColor: isPrimary ? colors.actionTintColor : colors.backgroundColor }, + backgroundColor ? { backgroundColor } : { backgroundColor: isPrimary ? colors.tintColor : colors.backgroundColor }, disabled && styles.disabled, style ]} diff --git a/app/containers/EmojiPicker/index.tsx b/app/containers/EmojiPicker/index.tsx index 586ff2867..6faec8d7f 100644 --- a/app/containers/EmojiPicker/index.tsx +++ b/app/containers/EmojiPicker/index.tsx @@ -68,7 +68,7 @@ const EmojiPicker = ({ keyboardShouldPersistTaps: 'always', keyboardDismissMode: 'none' }} - style={{ backgroundColor: colors.messageboxBackground }} + style={{ backgroundColor: colors.backgroundColor }} > {categories.tabs.map((tab: any, i) => renderCategory(tab.category, i, tab.tabLabel))} diff --git a/app/containers/InAppNotification/NotifierComponent.tsx b/app/containers/InAppNotification/NotifierComponent.tsx index 8b32ae1c6..2f163c19d 100644 --- a/app/containers/InAppNotification/NotifierComponent.tsx +++ b/app/containers/InAppNotification/NotifierComponent.tsx @@ -107,7 +107,7 @@ const NotifierComponent = React.memo(({ notification, isMasterDetail }: INotifie styles.container, (isMasterDetail || isLandscape) && styles.small, { - backgroundColor: themes[theme].focusedBackground, + backgroundColor: themes[theme].backgroundColor, borderColor: themes[theme].separatorColor, marginTop: insets.top } diff --git a/app/containers/List/ListHeader.tsx b/app/containers/List/ListHeader.tsx index 4927d9c67..cd675a93d 100644 --- a/app/containers/List/ListHeader.tsx +++ b/app/containers/List/ListHeader.tsx @@ -28,7 +28,7 @@ const ListHeader = React.memo(({ title, translateTitle = true }: IListHeader) => return ( - + {translateTitle ? I18n.t(title) : title} diff --git a/app/containers/List/ListInfo.tsx b/app/containers/List/ListInfo.tsx index 1a8dc8910..be488550e 100644 --- a/app/containers/List/ListInfo.tsx +++ b/app/containers/List/ListInfo.tsx @@ -27,7 +27,7 @@ const ListInfo = React.memo(({ info, translateInfo = true }: IListInfo) => { const { theme } = useTheme(); return ( - {translateInfo ? I18n.t(info) : info} + {translateInfo ? I18n.t(info) : info} ); }); diff --git a/app/containers/LoginServices/LoginServices.stories.tsx b/app/containers/LoginServices/LoginServices.stories.tsx index 671de5b83..d8272ad39 100644 --- a/app/containers/LoginServices/LoginServices.stories.tsx +++ b/app/containers/LoginServices/LoginServices.stories.tsx @@ -84,7 +84,7 @@ export const ServiceList = () => ( {}} - backgroundColor={colors[theme].chatComponentBackground} + backgroundColor={colors[theme].buttonBackgroundSecondaryDefault} buttonText={buttonText} icon={icon} name={service.name} diff --git a/app/containers/LoginServices/Service.tsx b/app/containers/LoginServices/Service.tsx index 3e5b74c56..028bb7736 100644 --- a/app/containers/LoginServices/Service.tsx +++ b/app/containers/LoginServices/Service.tsx @@ -86,7 +86,7 @@ const Service = React.memo( ); } - const backgroundColor = isSaml && service.buttonColor ? service.buttonColor : colors.chatComponentBackground; + const backgroundColor = isSaml && service.buttonColor ? service.buttonColor : colors.buttonBackgroundSecondaryDefault; return ( diff --git a/app/containers/MessageActions/Header.tsx b/app/containers/MessageActions/Header.tsx index f9c809e5e..de31aec3b 100644 --- a/app/containers/MessageActions/Header.tsx +++ b/app/containers/MessageActions/Header.tsx @@ -65,7 +65,7 @@ const HeaderItem = ({ item, onReaction, theme }: THeaderItem) => ( onReaction({ emoji: item })} - style={[styles.headerItem, { backgroundColor: themes[theme].auxiliaryBackground }]} + style={[styles.headerItem, { backgroundColor: themes[theme].backgroundColor }]} > {typeof item === 'string' ? ( {shortnameToUnicode(`:${item}:`)} @@ -109,12 +109,12 @@ const Header = React.memo(({ handleReaction, message, isMasterDetail }: IHeader) } return ( - + (typeof item === 'string' ? item : item.name)} showsHorizontalScrollIndicator={false} scrollEnabled={false} diff --git a/app/containers/MessageBox/CommandsPreview/Item.tsx b/app/containers/MessageBox/CommandsPreview/Item.tsx index b42c60f20..de1b0b0dc 100644 --- a/app/containers/MessageBox/CommandsPreview/Item.tsx +++ b/app/containers/MessageBox/CommandsPreview/Item.tsx @@ -40,7 +40,7 @@ const Item = ({ item }: IMessageBoxCommandsPreviewItem) => { {loading ? : null} ) : ( - + )} ); diff --git a/app/containers/MessageBox/Mentions/FixedMentionItem.tsx b/app/containers/MessageBox/Mentions/FixedMentionItem.tsx index 2b064340f..32df3ef7e 100644 --- a/app/containers/MessageBox/Mentions/FixedMentionItem.tsx +++ b/app/containers/MessageBox/Mentions/FixedMentionItem.tsx @@ -20,7 +20,7 @@ const FixedMentionItem = ({ item, onPress }: IMessageBoxFixedMentionItem) => { style={[ styles.mentionItem, { - backgroundColor: themes[theme].auxiliaryBackground, + backgroundColor: themes[theme].backgroundColor, borderTopColor: themes[theme].separatorColor } ]} diff --git a/app/containers/MessageBox/Mentions/MentionItem.tsx b/app/containers/MessageBox/Mentions/MentionItem.tsx index 62d8dfc0d..d594761a4 100644 --- a/app/containers/MessageBox/Mentions/MentionItem.tsx +++ b/app/containers/MessageBox/Mentions/MentionItem.tsx @@ -47,7 +47,7 @@ const MentionItemContent = React.memo(({ trackingType, item }: IMessageBoxMentio return ( <> !{item.shortcut} - + {item.text} @@ -92,7 +92,7 @@ const MentionItem = ({ item, trackingType }: IMessageBoxMentionItem) => { style={[ styles.mentionItem, { - backgroundColor: themes[theme].auxiliaryBackground, + backgroundColor: themes[theme].backgroundColor, borderTopColor: themes[theme].separatorColor } ]} diff --git a/app/containers/MessageBox/Mentions/index.tsx b/app/containers/MessageBox/Mentions/index.tsx index a27ebe41e..61531fc3a 100644 --- a/app/containers/MessageBox/Mentions/index.tsx +++ b/app/containers/MessageBox/Mentions/index.tsx @@ -25,7 +25,7 @@ const Mentions = React.memo( return ( ( 0} loading={loading} /> )} diff --git a/app/containers/MessageBox/RecordAudio.tsx b/app/containers/MessageBox/RecordAudio.tsx index 2f2152721..0f04c5c72 100644 --- a/app/containers/MessageBox/RecordAudio.tsx +++ b/app/containers/MessageBox/RecordAudio.tsx @@ -202,7 +202,7 @@ export default class RecordAudio extends React.PureComponent - + ); diff --git a/app/containers/MessageBox/ReplyPreview.tsx b/app/containers/MessageBox/ReplyPreview.tsx index 1b37ec77b..415d63a96 100644 --- a/app/containers/MessageBox/ReplyPreview.tsx +++ b/app/containers/MessageBox/ReplyPreview.tsx @@ -66,7 +66,7 @@ const ReplyPreview = React.memo( const time = moment(message.ts).format(Message_TimeFormat); return ( - + {useRealName ? message.u?.name : message.u?.username} diff --git a/app/containers/MessageBox/buttons/BaseButton.tsx b/app/containers/MessageBox/buttons/BaseButton.tsx index ecf857a3e..7d989f7b8 100644 --- a/app/containers/MessageBox/buttons/BaseButton.tsx +++ b/app/containers/MessageBox/buttons/BaseButton.tsx @@ -25,7 +25,7 @@ const BaseButton = ({ accessibilityLabel, icon, color, ...props }: IBaseButton) accessibilityLabel={accessibilityLabel ? i18n.t(accessibilityLabel) : accessibilityLabel} accessibilityRole='button' > - + ); diff --git a/app/containers/MessageBox/index.tsx b/app/containers/MessageBox/index.tsx index a7e6823db..085a21ee2 100644 --- a/app/containers/MessageBox/index.tsx +++ b/app/containers/MessageBox/index.tsx @@ -1272,7 +1272,7 @@ class MessageBox extends Component { style={[ styles.textArea, { backgroundColor: themes[theme].messageboxBackground }, - !recording && editing && { backgroundColor: themes[theme].chatComponentBackground } + !recording && editing && { backgroundColor: themes[theme].statusBackgroundWarning } ]} testID='messagebox' > diff --git a/app/containers/RoomItem/Tag.tsx b/app/containers/RoomItem/Tag.tsx index 68b2b444b..8bceb4339 100644 --- a/app/containers/RoomItem/Tag.tsx +++ b/app/containers/RoomItem/Tag.tsx @@ -15,7 +15,7 @@ const Tag = React.memo(({ name, testID }: ITag) => { return ( - + {name} diff --git a/app/containers/RoomItem/Touchable.tsx b/app/containers/RoomItem/Touchable.tsx index 881a24cbf..ba81953ff 100644 --- a/app/containers/RoomItem/Touchable.tsx +++ b/app/containers/RoomItem/Touchable.tsx @@ -223,7 +223,7 @@ const Touchable = ({ onPress={handlePress} testID={testID} style={{ - backgroundColor: isFocused ? colors.chatComponentBackground : colors.backgroundColor + backgroundColor: isFocused ? colors.buttonBackgroundSecondaryDefault : colors.backgroundColor }} > {children} diff --git a/app/containers/SafeAreaView.tsx b/app/containers/SafeAreaView.tsx index fe88ea771..1c6f217b4 100644 --- a/app/containers/SafeAreaView.tsx +++ b/app/containers/SafeAreaView.tsx @@ -23,7 +23,7 @@ const SafeAreaView = React.memo(({ style, children, vertical = true, ...props }: const { theme } = useTheme(); return ( diff --git a/app/containers/ServerItem/index.tsx b/app/containers/ServerItem/index.tsx index d01432279..0f9c753ce 100644 --- a/app/containers/ServerItem/index.tsx +++ b/app/containers/ServerItem/index.tsx @@ -28,9 +28,9 @@ const ServerItem = React.memo(({ item, onPress, onLongPress, hasCheck }: IServer onPress={onPress} onLongPress={() => onLongPress?.()} testID={`rooms-list-header-server-${item.id}`} - android_ripple={{ color: themes[theme].bannerBackground }} + android_ripple={{ color: themes[theme].buttonBackgroundSecondaryPress }} style={({ pressed }: { pressed: boolean }) => ({ - backgroundColor: isIOS && pressed ? themes[theme].bannerBackground : themes[theme].backgroundColor + backgroundColor: isIOS && pressed ? themes[theme].buttonBackgroundSecondaryPress : themes[theme].backgroundColor })} > diff --git a/app/containers/TextInput/FormTextInput.tsx b/app/containers/TextInput/FormTextInput.tsx index 42dfa64b4..b39626ab8 100644 --- a/app/containers/TextInput/FormTextInput.tsx +++ b/app/containers/TextInput/FormTextInput.tsx @@ -136,7 +136,7 @@ export const FormTextInput = ({ {showClearInput ? ( - + ) : null} diff --git a/app/containers/ThreadDetails.tsx b/app/containers/ThreadDetails.tsx index 714e8035c..b8fb64cbd 100644 --- a/app/containers/ThreadDetails.tsx +++ b/app/containers/ThreadDetails.tsx @@ -87,7 +87,7 @@ const ThreadDetails = ({ item, user, badgeColor, toggleFollowThread, style }: IT diff --git a/app/containers/TwoFactor/index.tsx b/app/containers/TwoFactor/index.tsx index 6fba66b77..ce745894e 100644 --- a/app/containers/TwoFactor/index.tsx +++ b/app/containers/TwoFactor/index.tsx @@ -136,7 +136,7 @@ const TwoFactor = React.memo(({ isMasterDetail }: { isMasterDetail: boolean }) =