Refactor: Update UserInfoSheet UI and add new message icon
This commit introduces the following changes:
- Adds a new vector drawable `icn_message_to_user.xml`.
- Updates `UserInfoSheet.kt`:
- Removes the user card feature flag check for displaying server identity options.
- Changes the message button text from "Message Friends" to "Message".
- Updates the message button icon to the new `icn_message_to_user` drawable.
- Adds a new string resource "message".
This commit is contained in:
parent
8026553e0e
commit
100a00b8b0
|
|
@ -203,7 +203,7 @@ fun UserInfoSheet(
|
|||
)
|
||||
}
|
||||
}
|
||||
if (Experiments.enableServerIdentityOptions.isEnabled || FeatureFlags.userCardsGranted) {
|
||||
if (Experiments.enableServerIdentityOptions.isEnabled) {
|
||||
Row(horizontalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
if (Experiments.enableServerIdentityOptions.isEnabled) {
|
||||
SmallFloatingActionButton(onClick = {
|
||||
|
|
@ -215,16 +215,6 @@ fun UserInfoSheet(
|
|||
)
|
||||
}
|
||||
}
|
||||
if (FeatureFlags.userCardsGranted) {
|
||||
SmallFloatingActionButton(onClick = {
|
||||
showUserCard = true
|
||||
}) {
|
||||
Icon(
|
||||
painter = painterResource(R.drawable.icn_badge_24dp),
|
||||
contentDescription = null
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -247,10 +237,10 @@ fun UserInfoSheet(
|
|||
.background(MaterialTheme.colorScheme.surfaceBright)
|
||||
) {
|
||||
SheetButton(
|
||||
headlineContent = { Text(text = stringResource(id = R.string.message_friends)) },
|
||||
headlineContent = { Text(text = stringResource(id = R.string.message)) },
|
||||
leadingContent = {
|
||||
Icon(
|
||||
painter = painterResource(R.drawable.ic_new_message),
|
||||
painter = painterResource(R.drawable.icn_message_to_user),
|
||||
contentDescription = null
|
||||
)
|
||||
},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M21.75,12C21.75,13.683 21.315,15.338 20.486,16.803C19.657,18.268 18.463,19.494 17.02,20.36C15.577,21.227 13.934,21.705 12.251,21.749L4.237,21.713C3.685,21.71 3.08,21.7 2.69,21.31C2.493,21.113 2.355,20.865 2.291,20.594C2.227,20.323 2.24,20.039 2.328,19.775L3.392,16.582C2.696,15.275 2.308,13.826 2.256,12.346C2.204,10.866 2.49,9.393 3.092,8.04C3.694,6.687 4.597,5.489 5.731,4.536C6.865,3.584 8.202,2.903 9.639,2.544C11.076,2.185 12.575,2.159 14.024,2.466C15.473,2.774 16.833,3.407 18,4.319C19.167,5.23 20.112,6.396 20.762,7.727C21.411,9.057 21.749,10.519 21.75,12Z"
|
||||
android:fillColor="#FFFFFD"/>
|
||||
</vector>
|
||||
|
|
@ -17,6 +17,7 @@
|
|||
<string name="privacy_policy">Privacy Policy</string>
|
||||
<string name="community_guidelines">Community Guidelines</string>
|
||||
<string name="message_friends">Message Friends</string>
|
||||
<string name="message">Message</string>
|
||||
<string name="empty_messages_content_description">Empty Messages Sad Image</string>
|
||||
<string name="empty_messages_heading">It\'s Quiet Here...</string>
|
||||
<string name="empty_messages_body">Find friends to chat with or create a group conversation.</string>
|
||||
|
|
|
|||
Loading…
Reference in New Issue