|
17 | 17 | package io.getstream.chat.android.compose.ui.theme |
18 | 18 |
|
19 | 19 | import androidx.compose.foundation.shape.CircleShape |
| 20 | +import androidx.compose.foundation.shape.CornerSize |
20 | 21 | import androidx.compose.foundation.shape.RoundedCornerShape |
21 | 22 | import androidx.compose.runtime.Immutable |
22 | 23 | import androidx.compose.ui.graphics.Color |
@@ -618,16 +619,31 @@ public object StreamDesign { |
618 | 619 | */ |
619 | 620 | public fun default(): Shapes = Shapes( |
620 | 621 | avatar = CircleShape, |
621 | | - myMessageBubble = RoundedCornerShape(topStart = 20.dp, topEnd = 20.dp, bottomStart = 20.dp), |
622 | | - otherMessageBubble = RoundedCornerShape(topStart = 20.dp, topEnd = 20.dp, bottomEnd = 20.dp), |
623 | | - inputField = RoundedCornerShape(24.dp), |
| 622 | + myMessageBubble = RoundedCornerShape( |
| 623 | + topStart = StreamTokens.radius2xl, |
| 624 | + topEnd = StreamTokens.radius2xl, |
| 625 | + bottomEnd = CornerSize(0.dp), |
| 626 | + bottomStart = StreamTokens.radius2xl, |
| 627 | + ), |
| 628 | + otherMessageBubble = RoundedCornerShape( |
| 629 | + topStart = StreamTokens.radius2xl, |
| 630 | + topEnd = StreamTokens.radius2xl, |
| 631 | + bottomEnd = StreamTokens.radius2xl, |
| 632 | + bottomStart = CornerSize(0.dp), |
| 633 | + ), |
| 634 | + inputField = RoundedCornerShape(StreamTokens.radius3xl), |
624 | 635 | attachment = RoundedCornerShape(StreamTokens.radiusLg), |
625 | | - imageThumbnail = RoundedCornerShape(8.dp), |
626 | | - bottomSheet = RoundedCornerShape(topStart = 16.dp, topEnd = 16.dp), |
627 | | - suggestionList = RoundedCornerShape(16.dp), |
| 636 | + imageThumbnail = RoundedCornerShape(StreamTokens.radiusMd), |
| 637 | + bottomSheet = RoundedCornerShape( |
| 638 | + topStart = StreamTokens.radiusXl, |
| 639 | + topEnd = StreamTokens.radiusXl, |
| 640 | + bottomEnd = CornerSize(0.dp), |
| 641 | + bottomStart = CornerSize(0.dp), |
| 642 | + ), |
| 643 | + suggestionList = RoundedCornerShape(StreamTokens.radiusXl), |
628 | 644 | header = RectangleShape, |
629 | | - quotedAttachment = RoundedCornerShape(4.dp), |
630 | | - pollOptionInput = RoundedCornerShape(16.dp), |
| 645 | + quotedAttachment = RoundedCornerShape(StreamTokens.radiusXs), |
| 646 | + pollOptionInput = RoundedCornerShape(StreamTokens.radiusXl), |
631 | 647 | ) |
632 | 648 | } |
633 | 649 | } |
|
0 commit comments