Skip to content

Commit dc0d810

Browse files
committed
Use Surface API for border and shape.
1 parent 90c7c6c commit dc0d810

File tree

1 file changed

+3
-2
lines changed
  • libraries/matrixui/src/main/kotlin/io/element/android/libraries/matrix/ui/components

1 file changed

+3
-2
lines changed

libraries/matrixui/src/main/kotlin/io/element/android/libraries/matrix/ui/components/EditableOrgAvatar.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
package io.element.android.libraries.matrix.ui.components
99

10-
import androidx.compose.foundation.border
10+
import androidx.compose.foundation.BorderStroke
1111
import androidx.compose.foundation.clickable
1212
import androidx.compose.foundation.interaction.MutableInteractionSource
1313
import androidx.compose.foundation.layout.Box
@@ -108,10 +108,11 @@ fun EditableOrgAvatar(
108108
)
109109
Surface(
110110
color = ElementTheme.colors.bgCanvasDefault,
111+
shape = CircleShape,
112+
border = BorderStroke(1.dp, color = ElementTheme.colors.borderInteractiveSecondary),
111113
modifier = Modifier
112114
.clip(CircleShape)
113115
.size(30.dp)
114-
.border(1.dp, color = ElementTheme.colors.borderInteractiveSecondary, shape = CircleShape)
115116
.align(Alignment.BottomEnd)
116117
.clickable(
117118
indication = ripple(),

0 commit comments

Comments
 (0)