From 15c6f864bb3d3dae75e6d46598638a7e73064082 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20K=C3=BCrten?= <sebastian@mobanisto.de>
Date: Sun, 23 Jan 2022 12:24:19 +0100
Subject: [PATCH] Fix location of online status indicator on high-density
 displays

---
 .../briar/desktop/conversation/ConversationHeader.kt           | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/kotlin/org/briarproject/briar/desktop/conversation/ConversationHeader.kt b/src/main/kotlin/org/briarproject/briar/desktop/conversation/ConversationHeader.kt
index 9100b8bdbe..53aa4326a4 100644
--- a/src/main/kotlin/org/briarproject/briar/desktop/conversation/ConversationHeader.kt
+++ b/src/main/kotlin/org/briarproject/briar/desktop/conversation/ConversationHeader.kt
@@ -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)
                             }
-- 
GitLab