Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3753273
D5622.id18393.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D5622.id18393.diff
View Options
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';
@@ -422,13 +423,13 @@
/>
);
} else {
+ const textStyle = colorIsDark(this.props.threadInfo.color)
+ ? this.props.styles.joinButtonTextLight
+ : this.props.styles.joinButtonTextDark;
buttonContent = (
<View style={this.props.styles.joinButtonContent}>
- <SWMansionIcon
- name="plus"
- style={this.props.styles.joinButtonText}
- />
- <Text style={this.props.styles.joinButtonText}>Join Chat</Text>
+ <SWMansionIcon name="plus" style={textStyle} />
+ <Text style={textStyle}>Join Chat</Text>
</View>
);
}
@@ -771,8 +772,13 @@
justifyContent: 'center',
alignItems: 'center',
},
- joinButtonText: {
- color: 'listForegroundLabel',
+ joinButtonTextLight: {
+ color: 'white',
+ fontSize: 20,
+ marginHorizontal: 4,
+ },
+ joinButtonTextDark: {
+ color: 'black',
fontSize: 20,
marginHorizontal: 4,
},
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 1:31 AM (19 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2854939
Default Alt Text
D5622.id18393.diff (1 KB)
Attached To
Mode
D5622: [native] Fix appearance of "Join Chat" in light mode
Attached
Detach File
Event Timeline
Log In to Comment