From f64739d859f8fefa2097acdbcc90f2724bd4b43e Mon Sep 17 00:00:00 2001 From: Nikhil Date: Sun, 17 May 2026 10:55:38 +0530 Subject: [PATCH] Fix #285: remove gray box behind avatar and fix settings header Made the settings top app bar transparent so it matches the profile screen and doesn't show a weird gray bar when collapsed. Also added a proper background to the AvatarHeader box so the placeholder avatar blends in instead of showing a gray rectangle. --- .../java/org/monogram/presentation/core/ui/AvatarHeader.kt | 2 +- .../presentation/settings/settings/SettingsContent.kt | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/presentation/src/main/java/org/monogram/presentation/core/ui/AvatarHeader.kt b/presentation/src/main/java/org/monogram/presentation/core/ui/AvatarHeader.kt index 2f9c4343..cf58a883 100644 --- a/presentation/src/main/java/org/monogram/presentation/core/ui/AvatarHeader.kt +++ b/presentation/src/main/java/org/monogram/presentation/core/ui/AvatarHeader.kt @@ -64,7 +64,7 @@ fun AvatarHeader( fallbackPath = fallbackPath?.takeIf { it.isNotBlank() } ?: cachedFallbackPath ) - Box(modifier = combinedModifier) { + Box(modifier = combinedModifier.background(MaterialTheme.colorScheme.surfaceContainerHighest)) { val avatarFile = resolvedPath?.let { File(it) } if (avatarFile != null && avatarFile.exists()) { diff --git a/presentation/src/main/java/org/monogram/presentation/settings/settings/SettingsContent.kt b/presentation/src/main/java/org/monogram/presentation/settings/settings/SettingsContent.kt index a9cbae4f..21f1cc02 100644 --- a/presentation/src/main/java/org/monogram/presentation/settings/settings/SettingsContent.kt +++ b/presentation/src/main/java/org/monogram/presentation/settings/settings/SettingsContent.kt @@ -585,10 +585,9 @@ fun SettingsContent(component: SettingsComponent) { } }, colors = TopAppBarDefaults.topAppBarColors( - containerColor = dynamicContainerColorTopBar, - scrolledContainerColor = Color.Transparent, - - ) + containerColor = Color.Transparent, + scrolledContainerColor = Color.Transparent + ) ) } ) { padding ->