From 96e24551bb9aa25502950b2125e8501d96cf8735 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 27 Jul 2022 17:24:33 -0300 Subject: [PATCH] stash --- app/containers/ActionSheet/ActionSheet.tsx | 2 +- .../ActionSheet/BottomSheetContent.tsx | 4 +- app/containers/ActionSheet/Item.tsx | 2 +- app/containers/EmojiPicker/index.tsx | 2 +- .../InAppNotification/NotifierComponent.tsx | 2 +- app/containers/List/ListHeader.tsx | 2 +- app/containers/List/ListInfo.tsx | 2 +- .../LoginServices/LoginServices.stories.js | 2 +- app/containers/LoginServices/Service.tsx | 2 +- app/containers/MessageActions/Header.tsx | 8 ++-- .../MessageBox/Mentions/FixedMentionItem.tsx | 2 +- .../MessageBox/Mentions/MentionItem.tsx | 2 +- app/containers/MessageBox/Mentions/index.tsx | 2 +- app/containers/MessageBox/ReplyPreview.tsx | 2 +- app/containers/MessageBox/index.tsx | 2 +- app/containers/RoomItem/Tag.tsx | 2 +- app/containers/RoomItem/Touchable.tsx | 2 +- app/containers/SafeAreaView.tsx | 2 +- app/containers/ServerItem/index.tsx | 4 +- app/containers/TwoFactor/index.tsx | 2 +- app/containers/UIKit/DatePicker.tsx | 2 +- app/containers/UIKit/MultiSelect/Chips.tsx | 4 +- app/containers/UIKit/MultiSelect/Input.tsx | 2 +- .../UIKit/MultiSelect/MultiSelectContent.tsx | 2 +- app/containers/UIKit/Overflow.tsx | 4 +- app/containers/UserItem.tsx | 4 +- app/containers/markdown/index.tsx | 8 ++-- app/containers/markdown/new/Code.tsx | 2 +- app/containers/markdown/new/InlineCode.tsx | 2 +- app/containers/message/Audio.tsx | 5 +-- app/containers/message/Broadcast.tsx | 2 +- app/containers/message/CallButton.tsx | 2 +- .../Components/CollapsibleQuote/index.tsx | 4 +- app/containers/message/Discussion.tsx | 2 +- app/containers/message/Image.tsx | 2 +- app/containers/message/Reactions.tsx | 6 +-- app/containers/message/Reply.tsx | 7 +++- app/containers/message/Urls.tsx | 4 +- app/containers/message/Video.tsx | 2 +- app/lib/constants/colors.ts | 42 ++++++++++--------- app/lib/methods/helpers/touch.tsx | 4 +- app/views/AddExistingChannelView.tsx | 2 +- .../CannedResponseItem.tsx | 2 +- app/views/CloseLivechatView.tsx | 2 +- app/views/CreateChannelView.tsx | 4 +- app/views/CreateDiscussionView/index.tsx | 2 +- app/views/DirectoryView/Options.tsx | 4 +- app/views/E2EEncryptionSecurityView.tsx | 2 +- app/views/E2ESaveYourPasswordView.tsx | 4 +- app/views/ForwardLivechatView.tsx | 2 +- app/views/InviteUsersView/index.tsx | 5 +-- app/views/LivechatEditView.tsx | 2 +- app/views/ModalBlockView.tsx | 2 +- app/views/NewMessageView.tsx | 2 +- app/views/NewServerView/index.tsx | 4 +- app/views/ProfileView/index.tsx | 4 +- app/views/ReadReceiptView/index.tsx | 6 +-- app/views/RoomInfoView/Direct.tsx | 24 ++++++----- app/views/RoomInfoView/index.tsx | 4 +- app/views/RoomMembersView/index.tsx | 6 +-- app/views/RoomView/Banner.tsx | 4 +- app/views/RoomView/JoinCode.tsx | 2 +- app/views/RoomView/UploadProgress.tsx | 2 +- app/views/RoomsListView/ListHeader/index.tsx | 2 +- app/views/RoomsListView/index.tsx | 2 +- app/views/SelectListView.tsx | 8 ++-- app/views/SetUsernameView.tsx | 2 +- app/views/ShareListView/index.tsx | 6 +-- app/views/ShareView/Preview.tsx | 2 +- app/views/ShareView/Thumbs.tsx | 6 +-- app/views/ShareView/index.tsx | 2 +- app/views/SidebarView/index.tsx | 4 +- app/views/TeamChannelsView.tsx | 2 +- app/views/WorkspaceView/index.tsx | 2 +- ios/Podfile.lock | 17 ++++++-- ios/RocketChatRN.xcodeproj/project.pbxproj | 8 ++++ 76 files changed, 167 insertions(+), 149 deletions(-) diff --git a/app/containers/ActionSheet/ActionSheet.tsx b/app/containers/ActionSheet/ActionSheet.tsx index fb00d5267..7413bbfe5 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()} {...androidTablet}> diff --git a/app/containers/ActionSheet/BottomSheetContent.tsx b/app/containers/ActionSheet/BottomSheetContent.tsx index 6c6e6e979..84cac5e58 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 ? ( @@ -135,12 +135,12 @@ const Header = React.memo(({ handleReaction, server, message, isMasterDetail }: const renderFooter = () => ; return ( - + { 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 500ca8681..6923231b0 100644 --- a/app/containers/MessageBox/Mentions/MentionItem.tsx +++ b/app/containers/MessageBox/Mentions/MentionItem.tsx @@ -90,7 +90,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/ReplyPreview.tsx b/app/containers/MessageBox/ReplyPreview.tsx index a16e51cbc..e042301dd 100644 --- a/app/containers/MessageBox/ReplyPreview.tsx +++ b/app/containers/MessageBox/ReplyPreview.tsx @@ -65,7 +65,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/index.tsx b/app/containers/MessageBox/index.tsx index 107edd64d..26991513a 100644 --- a/app/containers/MessageBox/index.tsx +++ b/app/containers/MessageBox/index.tsx @@ -1156,7 +1156,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'> {textInputAndButtons} 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 7a5fa0959..92f96a02f 100644 --- a/app/containers/RoomItem/Touchable.tsx +++ b/app/containers/RoomItem/Touchable.tsx @@ -224,7 +224,7 @@ const Touchable = ({ theme={theme} 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 74a40ef05..12c2f930d 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 ( {children} diff --git a/app/containers/ServerItem/index.tsx b/app/containers/ServerItem/index.tsx index fe9adfadd..1f6846b80 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 })}> {item.iconURL ? ( diff --git a/app/containers/TwoFactor/index.tsx b/app/containers/TwoFactor/index.tsx index a171fd77b..cfaf9dd43 100644 --- a/app/containers/TwoFactor/index.tsx +++ b/app/containers/TwoFactor/index.tsx @@ -135,7 +135,7 @@ const TwoFactor = React.memo(({ isMasterDetail }: { isMasterDetail: boolean }) =