Use Surface API for border and shape.
This commit is contained in:
parent
a3195cd0e0
commit
dbf91f6dcf
1 changed files with 3 additions and 2 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
package io.element.android.libraries.matrix.ui.components
|
package io.element.android.libraries.matrix.ui.components
|
||||||
|
|
||||||
import androidx.compose.foundation.border
|
import androidx.compose.foundation.BorderStroke
|
||||||
import androidx.compose.foundation.clickable
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.interaction.MutableInteractionSource
|
import androidx.compose.foundation.interaction.MutableInteractionSource
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
|
|
@ -108,10 +108,11 @@ fun EditableOrgAvatar(
|
||||||
)
|
)
|
||||||
Surface(
|
Surface(
|
||||||
color = ElementTheme.colors.bgCanvasDefault,
|
color = ElementTheme.colors.bgCanvasDefault,
|
||||||
|
shape = CircleShape,
|
||||||
|
border = BorderStroke(1.dp, color = ElementTheme.colors.borderInteractiveSecondary),
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.clip(CircleShape)
|
.clip(CircleShape)
|
||||||
.size(30.dp)
|
.size(30.dp)
|
||||||
.border(1.dp, color = ElementTheme.colors.borderInteractiveSecondary, shape = CircleShape)
|
|
||||||
.align(Alignment.BottomEnd)
|
.align(Alignment.BottomEnd)
|
||||||
.clickable(
|
.clickable(
|
||||||
indication = ripple(),
|
indication = ripple(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue