From 9f53099d8051f8b43a1f04d8775df3d6281ed989 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Tue, 14 Oct 2025 20:12:27 +0300 Subject: [PATCH] Support dynamic colors in screen, card, and text field backgrounds --- app/src/main/kotlin/com/tutpro/baresip/AppTheme.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/AppTheme.kt b/app/src/main/kotlin/com/tutpro/baresip/AppTheme.kt index 97e1a1f9..97584345 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/AppTheme.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/AppTheme.kt @@ -44,8 +44,11 @@ fun AppTheme( } val customColorsPalette = - if (useDarkTheme) DarkCustomColors - else LightCustomColors + (if (useDarkTheme) DarkCustomColors else LightCustomColors).copy( + background = colorScheme.background, + cardBackground = colorScheme.surfaceVariant, + textFieldBackground = colorScheme.surfaceVariant + ) val view = LocalView.current if (!view.isInEditMode) {