From cb4370cc3b25ab944eab0f5deccff3afbc65f395 Mon Sep 17 00:00:00 2001 From: another-simple-pixel Date: Mon, 18 May 2026 09:54:51 -0700 Subject: [PATCH] UserProfilesView: drop SectionView wraps to remove card chrome The Your-chat-profiles screen is now on white surface bg; the SectionView cards (founder's original from PR #6777) painted white-on-white and only contributed padding. Unwrap the two SectionViews (hidden-profile reveal button + main profiles list) so the rows render directly inside the ColumnWithScrollBar without card chrome. --- .../views/usersettings/UserProfilesView.kt | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/UserProfilesView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/UserProfilesView.kt index 44914f18c6..9ce5a8242f 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/UserProfilesView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/UserProfilesView.kt @@ -167,26 +167,22 @@ private fun UserProfilesLayout( Box(Modifier.fillMaxSize().background(MaterialTheme.colors.surface)) { ColumnWithScrollBar { if (profileHidden.value) { - SectionView { - SettingsActionItem(painterResource(MR.images.ic_lock_open_right), stringResource(MR.strings.enter_password_to_show), click = { - profileHidden.value = false - }) - } + SettingsActionItem(painterResource(MR.images.ic_lock_open_right), stringResource(MR.strings.enter_password_to_show), click = { + profileHidden.value = false + }) SectionSpacer() } AppBarTitle(stringResource(MR.strings.your_chat_profiles), hostDevice(remember { chatModel.remoteHostId() })) - SectionView { - for (user in filteredUsers) { - UserView(user, visibleUsersCount, activateUser, removeUser, unhideUser, muteUser, unmuteUser, showHiddenProfile) - SectionDivider() - } - if (searchTextOrPassword.value.trim().isEmpty()) { - SectionItemView(addUser, minHeight = 68.dp) { - Icon(painterResource(MR.images.ic_add), stringResource(MR.strings.users_add), tint = MaterialTheme.colors.primary) - Spacer(Modifier.padding(horizontal = 4.dp)) - Text(stringResource(MR.strings.users_add), color = MaterialTheme.colors.primary) - } + for (user in filteredUsers) { + UserView(user, visibleUsersCount, activateUser, removeUser, unhideUser, muteUser, unmuteUser, showHiddenProfile) + SectionDivider() + } + if (searchTextOrPassword.value.trim().isEmpty()) { + SectionItemView(addUser, minHeight = 68.dp) { + Icon(painterResource(MR.images.ic_add), stringResource(MR.strings.users_add), tint = MaterialTheme.colors.primary) + Spacer(Modifier.padding(horizontal = 4.dp)) + Text(stringResource(MR.strings.users_add), color = MaterialTheme.colors.primary) } } SectionTextFooter(stringResource(MR.strings.tap_to_activate_profile))