From 3bc656a80fcd5453231ac2f363b783bc5f207958 Mon Sep 17 00:00:00 2001 From: ialokim <ialokim@mailbox.org> Date: Tue, 3 May 2022 18:56:50 +0200 Subject: [PATCH] draw whole window on top of Surface to have right background color --- .../kotlin/org/briarproject/briar/desktop/theme/Theme.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/org/briarproject/briar/desktop/theme/Theme.kt b/src/main/kotlin/org/briarproject/briar/desktop/theme/Theme.kt index 665b828f17..5c3437de24 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/theme/Theme.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/theme/Theme.kt @@ -23,6 +23,7 @@ import androidx.compose.foundation.text.selection.LocalTextSelectionColors import androidx.compose.foundation.text.selection.TextSelectionColors import androidx.compose.material.Colors import androidx.compose.material.MaterialTheme +import androidx.compose.material.Surface import androidx.compose.material.Typography import androidx.compose.material.darkColors import androidx.compose.material.lightColors @@ -122,7 +123,9 @@ fun BriarTheme( ) CompositionLocalProvider(LocalTextSelectionColors provides customTextSelectionColors) { - content() + Surface { + content() + } } } } -- GitLab