Skip to content
Snippets Groups Projects
Commit 15c6f864 authored by Sebastian's avatar Sebastian
Browse files

Fix location of online status indicator on high-density displays

parent 38723c49
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,8 @@ fun ConversationHeader(
modifier = Modifier,
onDraw = {
val size = 10.dp.toPx()
withTransform({ translate(left = 30f, top = 30f) }) {
val (tx, ty) = 30.dp.toPx() to 30.dp.toPx()
withTransform({ translate(left = tx, top = ty) }) {
drawCircle(color = outlineColor, radius = (size + 2.dp.toPx()) / 2f)
drawCircle(color = onlineColor, radius = size / 2f)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment