Page MenuHomePhabricator

D5622.id18392.diff
No OneTemporary

D5622.id18392.diff

diff --git a/native/chat/chat-input-bar.react.js b/native/chat/chat-input-bar.react.js
--- a/native/chat/chat-input-bar.react.js
+++ b/native/chat/chat-input-bar.react.js
@@ -32,6 +32,7 @@
threadActualMembers,
checkIfDefaultMembersAreVoiced,
draftKeyFromThreadID,
+ colorIsDark,
} from 'lib/shared/thread-utils';
import type { CalendarQuery } from 'lib/types/entry-types';
import type { LoadingStatus } from 'lib/types/loading-types';
@@ -426,9 +427,21 @@
<View style={this.props.styles.joinButtonContent}>
<SWMansionIcon
name="plus"
- style={this.props.styles.joinButtonText}
+ style={
+ colorIsDark(this.props.threadInfo.color)
+ ? this.props.styles.joinButtonTextLight
+ : this.props.styles.joinButtonTextDark
+ }
/>
- <Text style={this.props.styles.joinButtonText}>Join Chat</Text>
+ <Text
+ style={
+ colorIsDark(this.props.threadInfo.color)
+ ? this.props.styles.joinButtonTextLight
+ : this.props.styles.joinButtonTextDark
+ }
+ >
+ Join Chat
+ </Text>
</View>
);
}
@@ -771,8 +784,13 @@
justifyContent: 'center',
alignItems: 'center',
},
- joinButtonText: {
- color: 'listForegroundLabel',
+ joinButtonTextLight: {
+ color: 'white',
+ fontSize: 20,
+ marginHorizontal: 4,
+ },
+ joinButtonTextDark: {
+ color: 'black',
fontSize: 20,
marginHorizontal: 4,
},

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 11, 1:53 AM (19 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2858246
Default Alt Text
D5622.id18392.diff (1 KB)

Event Timeline