diff --git a/core/ui/src/main/res/drawable/ic_edit_fill_round_24.xml b/core/ui/src/main/res/drawable/ic_edit_fill_round_24.xml new file mode 100644 index 00000000..6cf8f2f2 --- /dev/null +++ b/core/ui/src/main/res/drawable/ic_edit_fill_round_24.xml @@ -0,0 +1,9 @@ + + + diff --git a/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/model/MessageOption.kt b/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/model/MessageOption.kt index 5287730d..c752249e 100644 --- a/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/model/MessageOption.kt +++ b/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/model/MessageOption.kt @@ -54,7 +54,7 @@ sealed class MessageOption( data object MarkAsImportant : MessageOption( titleResId = R.string.message_context_action_mark_as_important, - iconResId = R.drawable.ic_star_round_24 + iconResId = R.drawable.ic_star_fill_round_24 ) data object UnmarkAsImportant : MessageOption( diff --git a/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/presentation/DateStatus.kt b/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/presentation/DateStatus.kt index 1e854e15..571769d6 100644 --- a/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/presentation/DateStatus.kt +++ b/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/presentation/DateStatus.kt @@ -45,7 +45,7 @@ fun BoxScope.DateStatus( if (isImportant) { Spacer(modifier = Modifier.width(4.dp)) Icon( - painter = painterResource(R.drawable.ic_star_round_24), + painter = painterResource(R.drawable.ic_star_fill_round_24), contentDescription = null, modifier = Modifier.size(14.dp) ) @@ -64,7 +64,7 @@ fun BoxScope.DateStatus( if (isEdited) { Spacer(modifier = Modifier.width(4.dp)) Icon( - painter = painterResource(R.drawable.ic_edit_round_24), + painter = painterResource(R.drawable.ic_edit_fill_round_24), contentDescription = null, modifier = Modifier.size(14.dp) ) diff --git a/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/presentation/MessageBubble.kt b/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/presentation/MessageBubble.kt index 7ec2254e..5e8cf9e3 100644 --- a/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/presentation/MessageBubble.kt +++ b/feature/messageshistory/src/main/kotlin/dev/meloda/fast/messageshistory/presentation/MessageBubble.kt @@ -85,8 +85,10 @@ fun MessageBubble( mutableIntStateOf(0) } - val shouldFill by derivedStateOf { - attachmentsContainerWidth >= bubbleContainerWidth + val shouldFill by remember { + derivedStateOf { + attachmentsContainerWidth >= bubbleContainerWidth + } } var containerWidth by remember {