mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Set corner radius of nav bar icons to half height.
This commit is contained in:
@@ -184,13 +184,14 @@ private fun Modifier.drawNavigationBarBadge(count: Int, compact: Boolean): Modif
|
||||
drawContent()
|
||||
|
||||
val xOffset = size.width.toFloat() / 2f + xOffsetExtra
|
||||
val yRadius = size.height.toFloat() / 2f
|
||||
|
||||
if (size != IntSize.Zero) {
|
||||
drawRoundRect(
|
||||
color = color,
|
||||
topLeft = Offset(xOffset, yOffset),
|
||||
size = Size(textLayoutResult.size.width.toFloat() + padding * 2, textLayoutResult.size.height.toFloat()),
|
||||
cornerRadius = CornerRadius(20f, 20f)
|
||||
cornerRadius = CornerRadius(yRadius, yRadius)
|
||||
)
|
||||
|
||||
drawText(
|
||||
|
||||
Reference in New Issue
Block a user