mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Add icon for "Mark as read" and "Mark as unread" action.
This commit is contained in:
committed by
Benoit Marty
parent
c3ca3d9d44
commit
f5ad2abdd3
+29
-30
@@ -96,36 +96,35 @@ private fun RoomListModalBottomSheetContent(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
if (contextMenu.markAsUnreadFeatureFlagEnabled) {
|
if (contextMenu.markAsUnreadFeatureFlagEnabled) {
|
||||||
ListItem(
|
if (contextMenu.hasNewContent) {
|
||||||
headlineContent = {
|
ListItem(
|
||||||
Text(
|
headlineContent = {
|
||||||
text = stringResource(
|
Text(
|
||||||
id = if (contextMenu.hasNewContent) {
|
text = stringResource(id = R.string.screen_roomlist_mark_as_read),
|
||||||
R.string.screen_roomlist_mark_as_read
|
style = MaterialTheme.typography.bodyLarge,
|
||||||
} else {
|
)
|
||||||
R.string.screen_roomlist_mark_as_unread
|
},
|
||||||
}
|
onClick = onRoomMarkReadClick,
|
||||||
),
|
leadingContent = ListItemContent.Icon(
|
||||||
style = MaterialTheme.typography.bodyLarge,
|
iconSource = IconSource.Vector(CompoundIcons.MarkAsRead())
|
||||||
)
|
),
|
||||||
},
|
style = ListItemStyle.Primary,
|
||||||
modifier = Modifier.clickable {
|
)
|
||||||
if (contextMenu.hasNewContent) {
|
} else {
|
||||||
onRoomMarkReadClick()
|
ListItem(
|
||||||
} else {
|
headlineContent = {
|
||||||
onRoomMarkUnreadClick()
|
Text(
|
||||||
}
|
text = stringResource(id = R.string.screen_roomlist_mark_as_unread),
|
||||||
},
|
style = MaterialTheme.typography.bodyLarge,
|
||||||
/* TODO Design
|
)
|
||||||
leadingContent = ListItemContent.Icon(
|
},
|
||||||
iconSource = IconSource.Vector(
|
onClick = onRoomMarkUnreadClick,
|
||||||
CompoundIcons.Settings,
|
leadingContent = ListItemContent.Icon(
|
||||||
contentDescription = stringResource(id = CommonStrings.common_settings)
|
iconSource = IconSource.Vector(CompoundIcons.MarkAsUnread())
|
||||||
)
|
),
|
||||||
),
|
style = ListItemStyle.Primary,
|
||||||
*/
|
)
|
||||||
style = ListItemStyle.Primary,
|
}
|
||||||
)
|
|
||||||
}
|
}
|
||||||
ListItem(
|
ListItem(
|
||||||
headlineContent = {
|
headlineContent = {
|
||||||
|
|||||||
Reference in New Issue
Block a user