Skip to content

Commit b20d636

Browse files
committed
Use Stream tokens for shapes
1 parent 1a16c95 commit b20d636

1 file changed

Lines changed: 24 additions & 8 deletions

File tree

  • stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/theme

stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/theme/StreamDesign.kt

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package io.getstream.chat.android.compose.ui.theme
1818

1919
import androidx.compose.foundation.shape.CircleShape
20+
import androidx.compose.foundation.shape.CornerSize
2021
import androidx.compose.foundation.shape.RoundedCornerShape
2122
import androidx.compose.runtime.Immutable
2223
import androidx.compose.ui.graphics.Color
@@ -618,16 +619,31 @@ public object StreamDesign {
618619
*/
619620
public fun default(): Shapes = Shapes(
620621
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),
624635
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),
628644
header = RectangleShape,
629-
quotedAttachment = RoundedCornerShape(4.dp),
630-
pollOptionInput = RoundedCornerShape(16.dp),
645+
quotedAttachment = RoundedCornerShape(StreamTokens.radiusXs),
646+
pollOptionInput = RoundedCornerShape(StreamTokens.radiusXl),
631647
)
632648
}
633649
}

0 commit comments

Comments
 (0)