diff --git a/app/containers/ActionSheet/ActionSheetContentWithInputAndSubmit/index.tsx b/app/containers/ActionSheet/ActionSheetContentWithInputAndSubmit/index.tsx index b3562c484..5d369a0be 100644 --- a/app/containers/ActionSheet/ActionSheetContentWithInputAndSubmit/index.tsx +++ b/app/containers/ActionSheet/ActionSheetContentWithInputAndSubmit/index.tsx @@ -127,7 +127,7 @@ const ActionSheetContentWithInputAndSubmit = ({ /> ) : null} onSubmit(inputValue)} cancelTitle={i18n.t('Cancel')} diff --git a/app/containers/BackgroundContainer/index.tsx b/app/containers/BackgroundContainer/index.tsx index 53636328c..2d4bc0d9c 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 de53afd6e..34eecd53f 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/LoginServices/ServicesSeparator.tsx b/app/containers/LoginServices/ServicesSeparator.tsx index 17727ff11..254dc7978 100644 --- a/app/containers/LoginServices/ServicesSeparator.tsx +++ b/app/containers/LoginServices/ServicesSeparator.tsx @@ -20,7 +20,7 @@ const ServicesSeparator = ({ services, separator, collapsed, onPress }: IService type='secondary' onPress={onPress} style={styles.options} - color={colors.actionTintColor} + color={colors.tintColor} /> diff --git a/app/containers/MessageBox/CommandsPreview/Item.tsx b/app/containers/MessageBox/CommandsPreview/Item.tsx index 4e323ea81..a80abb758 100644 --- a/app/containers/MessageBox/CommandsPreview/Item.tsx +++ b/app/containers/MessageBox/CommandsPreview/Item.tsx @@ -38,7 +38,7 @@ const Item = ({ item }: IMessageBoxCommandsPreviewItem) => { {loading ? : null} ) : ( - + )} ); diff --git a/app/containers/MessageBox/Mentions/MentionItem.tsx b/app/containers/MessageBox/Mentions/MentionItem.tsx index 6923231b0..e941e75a6 100644 --- a/app/containers/MessageBox/Mentions/MentionItem.tsx +++ b/app/containers/MessageBox/Mentions/MentionItem.tsx @@ -45,7 +45,7 @@ const MentionItemContent = React.memo(({ trackingType, item }: IMessageBoxMentio return ( <> !{item.shortcut} - + {item.text} diff --git a/app/containers/MessageBox/RecordAudio.tsx b/app/containers/MessageBox/RecordAudio.tsx index 4b550b62b..35409d742 100644 --- a/app/containers/MessageBox/RecordAudio.tsx +++ b/app/containers/MessageBox/RecordAudio.tsx @@ -197,7 +197,7 @@ export default class RecordAudio extends React.PureComponent - + ); diff --git a/app/containers/MessageBox/buttons/BaseButton.tsx b/app/containers/MessageBox/buttons/BaseButton.tsx index 707cb6ead..8b8c97794 100644 --- a/app/containers/MessageBox/buttons/BaseButton.tsx +++ b/app/containers/MessageBox/buttons/BaseButton.tsx @@ -24,7 +24,7 @@ const BaseButton = ({ accessibilityLabel, icon, color, ...props }: IBaseButton) accessible accessibilityLabel={accessibilityLabel ? i18n.t(accessibilityLabel) : accessibilityLabel} accessibilityRole='button'> - + ); diff --git a/app/containers/TextInput/FormTextInput.tsx b/app/containers/TextInput/FormTextInput.tsx index 2c7e09a8d..d10cec1c2 100644 --- a/app/containers/TextInput/FormTextInput.tsx +++ b/app/containers/TextInput/FormTextInput.tsx @@ -135,7 +135,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/UserItem.tsx b/app/containers/UserItem.tsx index 00b6383f0..d56f2e352 100644 --- a/app/containers/UserItem.tsx +++ b/app/containers/UserItem.tsx @@ -71,7 +71,7 @@ const UserItem = ({ name, username, onPress, testID, onLongPress, style, icon, t @{username} - {icon ? : null} + {icon ? : null} ); diff --git a/app/containers/markdown/Link.tsx b/app/containers/markdown/Link.tsx index d3dce93db..31b0b5bad 100644 --- a/app/containers/markdown/Link.tsx +++ b/app/containers/markdown/Link.tsx @@ -37,7 +37,7 @@ const Link = React.memo(({ children, link, theme, onLinkPress }: ILink) => { // if you have a [](https://rocket.chat) render https://rocket.chat return ( - + {childLength !== 0 ? children : link} ); diff --git a/app/containers/markdown/new/Image.tsx b/app/containers/markdown/new/Image.tsx index d21ed9215..fa957b4f6 100644 --- a/app/containers/markdown/new/Image.tsx +++ b/app/containers/markdown/new/Image.tsx @@ -26,7 +26,7 @@ const MessageImage = ({ img, theme }: TMessageImage) => ( resizeMode={FastImage.resizeMode.cover} indicator={Progress.Pie} indicatorProps={{ - color: themes[theme].actionTintColor + color: themes[theme].tintColor }} /> ); diff --git a/app/containers/markdown/new/Link.tsx b/app/containers/markdown/new/Link.tsx index db6d23212..297f96318 100644 --- a/app/containers/markdown/new/Link.tsx +++ b/app/containers/markdown/new/Link.tsx @@ -39,7 +39,7 @@ const Link = ({ value }: ILinkProps) => { }; return ( - + {(block => { switch (block.type) { case 'PLAIN_TEXT': diff --git a/app/containers/message/Image.tsx b/app/containers/message/Image.tsx index 9a1d160e7..deb6a4006 100644 --- a/app/containers/message/Image.tsx +++ b/app/containers/message/Image.tsx @@ -50,7 +50,7 @@ export const MessageImage = React.memo(({ imgUri, theme }: { imgUri: string; the resizeMode={FastImage.resizeMode.cover} indicator={Progress.Pie} indicatorProps={{ - color: themes[theme].actionTintColor + color: themes[theme].tintColor }} /> )); diff --git a/app/containers/message/Reply.tsx b/app/containers/message/Reply.tsx index 9aa2857ea..ee9f0216b 100644 --- a/app/containers/message/Reply.tsx +++ b/app/containers/message/Reply.tsx @@ -98,7 +98,7 @@ const Title = React.memo( return ( {attachment.author_name ? ( - {attachment.author_name} + {attachment.author_name} ) : null} {time ? {time} : null} {attachment.title ? {attachment.title} : null} @@ -127,7 +127,7 @@ const Description = React.memo( return ( diff --git a/app/ee/omnichannel/containers/OmnichannelHeader/OmnichannelQueue.tsx b/app/ee/omnichannel/containers/OmnichannelHeader/OmnichannelQueue.tsx index 7ce8b2320..501db2463 100644 --- a/app/ee/omnichannel/containers/OmnichannelHeader/OmnichannelQueue.tsx +++ b/app/ee/omnichannel/containers/OmnichannelHeader/OmnichannelQueue.tsx @@ -21,7 +21,7 @@ const OmnichannelQueue = ({ queueSize, onPress }: IOmnichannelQueue) => { } + left={() => } color={themes[theme].bodyText} onPress={queueSize ? onPress : undefined} styleTitle={styles.titleOmnichannelQueue} @@ -33,7 +33,7 @@ const OmnichannelQueue = ({ queueSize, onPress }: IOmnichannelQueue) => { ) : ( - {i18n.t('Empty')} + {i18n.t('Empty')} )} )} diff --git a/app/lib/constants/colors.ts b/app/lib/constants/colors.ts index 22d9dc4a4..b90e8196d 100644 --- a/app/lib/constants/colors.ts +++ b/app/lib/constants/colors.ts @@ -23,7 +23,7 @@ export const colors = { light: { backgroundColor: '#ffffff', // surface-light // focusedBackground: '#ffffff', // removed in favor of backgroundColor - chatComponentBackground: 'red', + // chatComponentBackground: 'red', surfaceTint: '#F7F8FA', buttonBackgroundSecondaryDefault: '#E4E7EA', buttonBackgroundSecondaryPress: '#9EA2A8', @@ -38,42 +38,42 @@ export const colors = { separatorColor: '#CBCED1', // strokeLight tintColor: '#156FF5', // buttonBackgroundPrimaryDefault // tintColor: '#549df9', // removed in favor of tintColor - tintDisabled: '#88B4F5', - auxiliaryTintColor: '#6C727A', - actionTintColor: '#1d74f5', + // actionTintColor: '#1d74f5', // removed in favor of tintColor + tintDisabled: '#D1EBFE', // buttonBackgroundDisabled + // auxiliaryTintColor: '#6C727A', // removed in favor of auxiliaryText backdropColor: '#000000', - dangerColor: '#f5455c', - successColor: '#2de0a5', + backdropOpacity: 0.7, + dangerColor: '#EC0D2A', // buttonBackgroundDangerDefault + // successColor: '#2de0a5', not used borderColor: '#9EA2A8', // strokeMedium - navbarBackground: '#ffffff', - headerBorder: '#B2B2B2', - headerBackground: '#EEEFF1', - headerSecondaryBackground: '#ffffff', - headerTintColor: '#6C727A', - headerTitleColor: '#0C0D0F', - headerSecondaryText: '#1d74f5', - toastBackground: '#0C0D0F', - videoBackground: '#1f2329', - favoriteBackground: '#ffbb00', - hideBackground: '#54585e', - messageboxBackground: '#ffffff', - searchboxBackground: '#E6E6E7', - buttonBackground: '#414852', - buttonText: '#ffffff', - passcodeBackground: '#EEEFF1', - passcodeButtonActive: '#E4E7EA', - passcodeLockIcon: '#6C727A', - passcodePrimary: '#2F343D', - passcodeSecondary: '#6C727A', - passcodeDotEmpty: '#CBCED1', - passcodeDotFull: '#6C727A', - previewBackground: '#1F2329', - previewTintColor: '#f9f9f9', - backdropOpacity: 0.3, - attachmentLoadingOpacity: 0.7, - collapsibleQuoteBorder: '#CBCED1', - collapsibleChevron: '#6C727A', - cancelButton: '#E4E7EA', + navbarBackground: '#F7F8FA', // surfaceTint + headerBorder: '#CBCED1', // strokeLight + headerBackground: '#F7F8FA', // surfaceTint + // headerSecondaryBackground: '#ffffff', removed in favor of headerBackground + headerTintColor: '#6C727A', // fontSecondaryInfo + headerTitleColor: '#1F2329', // fontTitleLabels + // headerSecondaryText: '#1d74f5', not used + toastBackground: '#0C0D0F', // strokeExtraDark + videoBackground: '#0C0D0F', // strokeExtraDark + favoriteBackground: '#ffbb00', // tbd + hideBackground: '#54585e', // tbd + messageboxBackground: '#F7F8FA', // surfaceTint + // searchboxBackground: '#E6E6E7', removed in favor of buttonBackgroundSecondaryDefault + // buttonBackground: '#414852', buttonBackgroundSecondaryDefault + buttonText: '#ffffff', // buttonFontOnPrimary + passcodeBackground: '#F7F8FA', // surfaceTint + passcodeButtonActive: '#9EA2A8', // buttonBackgroundSecondaryPress + passcodeLockIcon: '#1F2329', // fontTitleLabels + passcodePrimary: '#1F2329', // fontTitleLabels + passcodeSecondary: '#6C727A', // fontSecondaryInfo + passcodeDotEmpty: '#CBCED1', // surfaceLight + passcodeDotFull: '#9EA2A8', // surfaceMedium + previewBackground: '#0C0D0F', // strokeExtraDark + previewTintColor: '#ffffff', // buttonFontOnPrimary change later + attachmentLoadingOpacity: 0.7, // tbd + collapsibleQuoteBorder: '#CBCED1', // strokeLight + collapsibleChevron: '#6C727A', // fontSecondaryInfo + cancelButton: '#E4E7EA', // buttonBackgroundSecondaryDefault ...mentions }, dark: { @@ -92,7 +92,7 @@ export const colors = { auxiliaryText: '#9297a2', infoText: '#6D6D72', tintColor: '#1d74f5', - tintColor: '#549df9', + // tintColor: '#549df9', tintDisabled: '#88B4F5', auxiliaryTintColor: '#f9f9f9', actionTintColor: '#1d74f5', @@ -144,7 +144,7 @@ export const colors = { auxiliaryText: '#b2b8c6', infoText: '#6d6d72', tintColor: '#1e9bfe', - tintColor: '#76b7fc', + // tintColor: '#76b7fc', tintDisabled: '#88B4F5', // TODO: Evaluate this with design team auxiliaryTintColor: '#f9f9f9', actionTintColor: '#1e9bfe', diff --git a/app/lib/methods/helpers/navigation/index.ts b/app/lib/methods/helpers/navigation/index.ts index 27b2dda3a..c1f44552a 100644 --- a/app/lib/methods/helpers/navigation/index.ts +++ b/app/lib/methods/helpers/navigation/index.ts @@ -13,9 +13,9 @@ export const defaultHeader = { cardStyle: { backgroundColor: 'transparent' } }; -export const cardStyle = { - backgroundColor: 'rgba(0,0,0,0)' -}; +// export const cardStyle = { +// backgroundColor: 'rgba(0,0,0,0)' +// }; export const borderBottom: any = (theme: TSupportedThemes) => ({ borderBottomWidth: StyleSheet.hairlineWidth, diff --git a/app/views/CannedResponseDetail.tsx b/app/views/CannedResponseDetail.tsx index fb84f2f83..f48efee83 100644 --- a/app/views/CannedResponseDetail.tsx +++ b/app/views/CannedResponseDetail.tsx @@ -149,12 +149,12 @@ const CannedResponseDetail = ({ navigation, route }: ICannedResponseDetailProps) {cannedResponse?.tags?.length > 0 ? ( cannedResponse.tags.map(t => ( - - {t} + + {t} )) ) : ( - - + - )} diff --git a/app/views/CannedResponsesListView/CannedResponseItem.tsx b/app/views/CannedResponsesListView/CannedResponseItem.tsx index 36bccdfd2..68078c25e 100644 --- a/app/views/CannedResponsesListView/CannedResponseItem.tsx +++ b/app/views/CannedResponsesListView/CannedResponseItem.tsx @@ -32,7 +32,7 @@ const CannedResponseItem = ({ !{shortcut} - {scope} + {scope}