@@ -5,7 +5,6 @@ import android.os.Build
55import android.widget.Toast
66import androidx.compose.animation.animateContentSize
77import androidx.compose.foundation.ExperimentalFoundationApi
8- import androidx.compose.foundation.Image
98import androidx.compose.foundation.clickable
109import androidx.compose.foundation.combinedClickable
1110import androidx.compose.foundation.layout.Arrangement
@@ -15,6 +14,11 @@ import androidx.compose.foundation.layout.fillMaxWidth
1514import androidx.compose.foundation.layout.padding
1615import androidx.compose.foundation.layout.size
1716import androidx.compose.foundation.shape.CircleShape
17+ import androidx.compose.material.icons.Icons
18+ import androidx.compose.material.icons.filled.Favorite
19+ import androidx.compose.material.icons.filled.PushPin
20+ import androidx.compose.material.icons.filled.ThumbUp
21+ import androidx.compose.material3.Icon
1822import androidx.compose.material3.LocalMinimumInteractiveComponentSize
1923import androidx.compose.material3.MaterialTheme
2024import androidx.compose.material3.Surface
@@ -94,11 +98,11 @@ fun Comment(comment: CommentsInfoItem, onCommentAuthorOpened: () -> Unit) {
9498 Column {
9599 Row (verticalAlignment = Alignment .CenterVertically ) {
96100 if (comment.isPinned) {
97- Image (
98- painter = painterResource( R .drawable.ic_pin) ,
101+ Icon (
102+ imageVector = Icons . Default . PushPin ,
99103 contentDescription = stringResource(R .string.detail_pinned_comment_view_description),
100104 modifier = Modifier
101- .padding(start = 1 .dp, end = 4 .dp)
105+ .padding(end = 3 .dp)
102106 .size(20 .dp)
103107 )
104108 }
@@ -138,8 +142,8 @@ fun Comment(comment: CommentsInfoItem, onCommentAuthorOpened: () -> Unit) {
138142 ) {
139143 // do not show anything if the like count is unknown
140144 if (comment.likeCount >= 0 ) {
141- Image (
142- painter = painterResource( R .drawable.ic_thumb_up) ,
145+ Icon (
146+ imageVector = Icons . Default . ThumbUp ,
143147 contentDescription = stringResource(R .string.detail_likes_img_view_description),
144148 modifier = Modifier
145149 .padding(end = 4 .dp)
@@ -154,9 +158,10 @@ fun Comment(comment: CommentsInfoItem, onCommentAuthorOpened: () -> Unit) {
154158 }
155159
156160 if (comment.isHeartedByUploader) {
157- Image (
158- painter = painterResource( R .drawable.ic_heart) ,
161+ Icon (
162+ imageVector = Icons . Default . Favorite ,
159163 contentDescription = stringResource(R .string.detail_heart_img_view_description),
164+ tint = MaterialTheme .colorScheme.primary,
160165 modifier = Modifier .size(20 .dp),
161166 )
162167 }
0 commit comments