From a36bb292cf7a2600432953f1abaa64bac1a3e60e Mon Sep 17 00:00:00 2001 From: GleidsonDaniel Date: Mon, 18 Mar 2024 13:27:25 -0300 Subject: [PATCH] chore: background color --- app/containers/ActionSheet/ActionSheet.tsx | 2 +- .../ActionSheet/BottomSheetContent.tsx | 2 +- app/containers/ActionSheet/Item.tsx | 6 +- app/containers/DirectoryItem/index.tsx | 2 +- app/containers/FormContainer.tsx | 4 +- .../IncomingCallNotification/style.tsx | 6 +- .../InAppNotification/NotifierComponent.tsx | 2 +- app/containers/List/ListItem.tsx | 4 +- app/containers/MessageActions/Header.tsx | 4 +- app/containers/Passcode/Base/Subtitle.tsx | 2 +- app/containers/RoomItem/Touchable.tsx | 2 +- app/containers/SearchBox/index.tsx | 2 +- app/containers/ServerItem/index.tsx | 2 +- .../SupportedVersionsExpired.tsx | 2 +- .../SupportedVersionsWarning.tsx | 2 +- app/containers/TextInput/FormTextInput.tsx | 6 +- app/containers/TwoFactor/index.tsx | 2 +- app/containers/UIKit/DatePicker.tsx | 4 +- app/containers/UIKit/Input.tsx | 4 +- app/containers/UIKit/MultiSelect/Input.tsx | 2 +- .../UIKit/MultiSelect/MultiSelectContent.tsx | 2 +- app/containers/UIKit/Select.tsx | 2 +- app/containers/markdown/Markdown.stories.tsx | 2 +- .../markdown/new/NewMarkdown.stories.tsx | 2 +- app/containers/message/Message.stories.tsx | 2 +- app/containers/message/Reactions.tsx | 4 +- app/ee/omnichannel/views/QueueListView.tsx | 4 +- app/index.tsx | 2 +- app/lib/constants/colors.ts | 128 +++++++++++++----- app/lib/methods/helpers/navigation/index.ts | 2 +- app/lib/methods/helpers/theme.ts | 2 +- .../backgroundNotificationHandler.ts | 4 +- app/views/AddExistingChannelView/index.tsx | 2 +- app/views/AttachmentView.tsx | 2 +- app/views/AuthLoadingView.tsx | 2 +- .../Dropdown/DropdownItem.tsx | 2 +- .../Dropdown/index.tsx | 2 +- app/views/CannedResponsesListView/index.tsx | 2 +- .../RoomSettings/SwitchItem.tsx | 2 +- app/views/CreateChannelView/index.tsx | 6 +- app/views/DirectoryView/Options.tsx | 2 +- app/views/DirectoryView/index.tsx | 2 +- app/views/DiscussionsView/Item.tsx | 2 +- app/views/DiscussionsView/index.tsx | 2 +- app/views/E2EEncryptionSecurityView/index.tsx | 2 +- app/views/E2EEnterYourPasswordView.tsx | 4 +- app/views/E2EHowItWorksView.tsx | 2 +- app/views/E2ESaveYourPasswordView.tsx | 6 +- app/views/ForwardMessageView/index.tsx | 2 +- app/views/InviteUsersView/index.tsx | 2 +- app/views/JitsiMeetView/JitsiAuthModal.tsx | 2 +- app/views/MarkdownTableView.tsx | 4 +- app/views/MessagesView/index.tsx | 6 +- app/views/NewMessageView/index.tsx | 2 +- app/views/NewServerView/ServerInput/index.tsx | 2 +- .../DeleteAccountActionSheetContent/index.tsx | 2 +- app/views/ReadReceiptView/index.tsx | 2 +- app/views/RoomActionsView/index.tsx | 4 +- app/views/RoomInfoEditView/index.tsx | 4 +- app/views/RoomInfoView/index.tsx | 4 +- app/views/RoomMembersView/index.tsx | 2 +- app/views/RoomView/JoinCode.tsx | 2 +- .../RoomView/List/components/NavBottomFAB.tsx | 2 +- .../RoomView/LoadMore/LoadMore.stories.tsx | 2 +- app/views/RoomView/Separator.tsx | 2 +- app/views/RoomView/index.tsx | 2 +- app/views/RoomsListView/ServerDropdown.tsx | 2 +- app/views/RoomsListView/index.tsx | 6 +- app/views/SearchMessagesView/index.tsx | 6 +- app/views/SelectListView.tsx | 4 +- app/views/SelectedUsersView/Header.tsx | 2 +- app/views/SelectedUsersView/index.tsx | 2 +- app/views/ShareListView/index.tsx | 6 +- app/views/ShareView/Thumbs.tsx | 2 +- app/views/ShareView/index.tsx | 6 +- app/views/SidebarView/index.tsx | 6 +- .../Dropdown/DropdownItem.tsx | 2 +- .../ThreadMessagesView/Dropdown/index.tsx | 2 +- app/views/ThreadMessagesView/Item.tsx | 2 +- app/views/ThreadMessagesView/index.tsx | 2 +- app/views/WithoutServersView.tsx | 2 +- 81 files changed, 213 insertions(+), 147 deletions(-) diff --git a/app/containers/ActionSheet/ActionSheet.tsx b/app/containers/ActionSheet/ActionSheet.tsx index 816b977d1..a94f4b215 100644 --- a/app/containers/ActionSheet/ActionSheet.tsx +++ b/app/containers/ActionSheet/ActionSheet.tsx @@ -161,7 +161,7 @@ const ActionSheet = React.memo( handleComponent={renderHandle} enablePanDownToClose style={{ ...styles.container, ...bottomSheet }} - backgroundStyle={{ backgroundColor: colors.focusedBackground }} + backgroundStyle={{ backgroundColor: colors.surfaceLight }} 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/BottomSheetContent.tsx b/app/containers/ActionSheet/BottomSheetContent.tsx index 9f07c0f49..cd95783e9 100644 --- a/app/containers/ActionSheet/BottomSheetContent.tsx +++ b/app/containers/ActionSheet/BottomSheetContent.tsx @@ -45,7 +45,7 @@ const BottomSheetContent = React.memo(({ options, hasCancel, hide, children, onL keyExtractor={item => item.title} bounces={false} renderItem={renderItem} - style={{ backgroundColor: colors.focusedBackground }} + style={{ backgroundColor: colors.surfaceLight }} keyboardDismissMode='interactive' indicatorStyle='black' contentContainerStyle={{ paddingBottom: bottom }} diff --git a/app/containers/ActionSheet/Item.tsx b/app/containers/ActionSheet/Item.tsx index 7a94423b1..64c405c35 100644 --- a/app/containers/ActionSheet/Item.tsx +++ b/app/containers/ActionSheet/Item.tsx @@ -29,17 +29,17 @@ export const Item = React.memo(({ item, hide }: IActionSheetItem) => { let color = colors.fontDefault; if (item.danger) { - color = colors.dangerColor; + color = colors.fontDanger; } if (!enabled) { color = colors.fontDisabled; } return ( - + {item.icon ? : null} - + {item.title} diff --git a/app/containers/DirectoryItem/index.tsx b/app/containers/DirectoryItem/index.tsx index f8766b44c..785dc9029 100644 --- a/app/containers/DirectoryItem/index.tsx +++ b/app/containers/DirectoryItem/index.tsx @@ -50,7 +50,7 @@ const DirectoryItem = ({ }: IDirectoryItem): React.ReactElement => { const { theme } = useTheme(); return ( - + diff --git a/app/containers/FormContainer.tsx b/app/containers/FormContainer.tsx index 985003313..2e0afd496 100644 --- a/app/containers/FormContainer.tsx +++ b/app/containers/FormContainer.tsx @@ -31,7 +31,7 @@ const FormContainer = ({ children, testID, ...props }: IFormContainer) => { return ( @@ -42,7 +42,7 @@ const FormContainer = ({ children, testID, ...props }: IFormContainer) => { {...scrollPersistTaps} {...props} > - + {children} diff --git a/app/containers/InAppNotification/IncomingCallNotification/style.tsx b/app/containers/InAppNotification/IncomingCallNotification/style.tsx index 0b16cac28..d55f9fc92 100644 --- a/app/containers/InAppNotification/IncomingCallNotification/style.tsx +++ b/app/containers/InAppNotification/IncomingCallNotification/style.tsx @@ -13,7 +13,7 @@ export const useStyle = () => { marginHorizontal: 10, borderWidth: StyleSheet.hairlineWidth, borderRadius: 4, - backgroundColor: colors.focusedBackground, + backgroundColor: colors.surfaceLight, borderColor: colors.separatorColor, flex: 1 }, @@ -36,7 +36,7 @@ export const useStyle = () => { }, cancelButton: { borderRadius: 4, - backgroundColor: colors.cancelCallButton, + backgroundColor: colors.dangerColor, marginRight: 8, flex: 2, alignItems: 'center', @@ -48,7 +48,7 @@ export const useStyle = () => { }, acceptButton: { borderRadius: 4, - backgroundColor: colors.acceptCallButton, + backgroundColor: colors.buttonBackgroundSuccessDefault, flex: 2, alignItems: 'center', justifyContent: 'center' diff --git a/app/containers/InAppNotification/NotifierComponent.tsx b/app/containers/InAppNotification/NotifierComponent.tsx index 225bc3677..602e2f92b 100644 --- a/app/containers/InAppNotification/NotifierComponent.tsx +++ b/app/containers/InAppNotification/NotifierComponent.tsx @@ -103,7 +103,7 @@ const NotifierComponent = React.memo(({ notification, isMasterDetail }: INotifie styles.container, isMasterDetail && styles.small, { - backgroundColor: themes[theme].focusedBackground, + backgroundColor: themes[theme].surfaceLight, borderColor: themes[theme].separatorColor, marginTop: insets.top } diff --git a/app/containers/List/ListItem.tsx b/app/containers/List/ListItem.tsx index 39b2c5361..9df7f7d8f 100644 --- a/app/containers/List/ListItem.tsx +++ b/app/containers/List/ListItem.tsx @@ -136,7 +136,7 @@ interface IListItemButton { const Button = React.memo(({ onPress, backgroundColor, underlayColor, ...props }: IListButtonPress) => ( onPress(props.title)} - style={{ backgroundColor: backgroundColor || themes[props.theme].backgroundColor }} + style={{ backgroundColor: backgroundColor || themes[props.theme].surfaceRoom }} underlayColor={underlayColor} enabled={!props.disabled} > @@ -157,7 +157,7 @@ const ListItem = React.memo(({ ...props }: IListItem) => { return