Skip to content
Snippets Groups Projects
Commit 39d94310 authored by Sebastian's avatar Sebastian Committed by Sebastian
Browse files

Add import for androidx.compose.foundation.Canvas

parent 844d70a3
No related branches found
No related tags found
1 merge request!7Import upstream updates to UI
package org.briarproject.briar.desktop.paul.views package org.briarproject.briar.desktop.paul.views
import androidx.compose.animation.core.animateDpAsState import androidx.compose.animation.core.animateDpAsState
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.Image import androidx.compose.foundation.Image
import androidx.compose.foundation.background import androidx.compose.foundation.background
import androidx.compose.foundation.border import androidx.compose.foundation.border
...@@ -256,7 +257,7 @@ fun ContactCard( ...@@ -256,7 +257,7 @@ fun ContactCard(
ProfileCircle(imageFromResource("images/profile_images/p0.png"), 36.dp) ProfileCircle(imageFromResource("images/profile_images/p0.png"), 36.dp)
// Draw notification badges // Draw notification badges
if (drawNotifications) { if (drawNotifications) {
androidx.compose.foundation.Canvas( Canvas(
modifier = Modifier.align(Alignment.CenterVertically), modifier = Modifier.align(Alignment.CenterVertically),
onDraw = { onDraw = {
val size = 10.dp.toPx() val size = 10.dp.toPx()
...@@ -283,7 +284,7 @@ fun ContactCard( ...@@ -283,7 +284,7 @@ fun ContactCard(
) )
} }
} }
androidx.compose.foundation.Canvas( Canvas(
modifier = Modifier.padding(start = 32.dp, end = 18.dp).size(22.dp).align(Alignment.CenterVertically), modifier = Modifier.padding(start = 32.dp, end = 18.dp).size(22.dp).align(Alignment.CenterVertically),
onDraw = { onDraw = {
val size = 16.dp.toPx() val size = 16.dp.toPx()
...@@ -484,7 +485,7 @@ fun MsgColumnHeader( ...@@ -484,7 +485,7 @@ fun MsgColumnHeader(
Box(modifier = Modifier.fillMaxWidth().height(HEADER_SIZE + 1.dp)) { Box(modifier = Modifier.fillMaxWidth().height(HEADER_SIZE + 1.dp)) {
Row(modifier = Modifier.align(Alignment.Center)) { Row(modifier = Modifier.align(Alignment.Center)) {
ProfileCircle(imageFromResource("images/profile_images/p0.png"), 36.dp) ProfileCircle(imageFromResource("images/profile_images/p0.png"), 36.dp)
androidx.compose.foundation.Canvas( Canvas(
modifier = Modifier.align(Alignment.CenterVertically), modifier = Modifier.align(Alignment.CenterVertically),
onDraw = { onDraw = {
val size = 10.dp.toPx() val size = 10.dp.toPx()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment