From 32ddd09c8fd91fdefe904c570e91750ee910c49b Mon Sep 17 00:00:00 2001 From: another-simple-pixel Date: Sat, 16 May 2026 14:04:05 -0700 Subject: [PATCH] UserPicker: align item padding with Settings, add divider after inactive-users grid UserPickerOptionRow no longer applies extraPadding on desktop, and the Settings row uses default SectionItemView padding instead of its own. Both now match the CARD_ITEM_PADDING used in Settings screens. After the inactive-users avatar grid in the unified card, paint a SectionDivider so it visually separates from Your chat profiles. --- .../chat/simplex/common/views/chatlist/UserPicker.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt index fcf26a1687..63b64b34c4 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt @@ -1,5 +1,6 @@ package chat.simplex.common.views.chatlist +import SectionDivider import SectionItemView import SectionView import TextIconSpaced @@ -298,6 +299,7 @@ fun UserPicker( stopped = stopped ) } + SectionDivider() } ProfilesOptionRow() } @@ -387,8 +389,7 @@ private fun GlobalSettingsBody( ModalManager.start.showModalCloseable { close -> SettingsView(chatModel, setPerformLA, close) } - }, - padding = if (appPlatform.isDesktop) PaddingValues(start = DEFAULT_PADDING * 1.7f, end = DEFAULT_PADDING + 2.dp) else PaddingValues(start = DEFAULT_PADDING, end = DEFAULT_PADDING_HALF) + } ) { val text = generalGetString(MR.strings.settings_section_title_settings).lowercase().capitalize(Locale.current) Icon(painterResource(MR.images.ic_settings), text, tint = MaterialTheme.colors.secondary) @@ -484,7 +485,7 @@ fun UserProfileRow(u: User, enabled: Boolean = remember { chatModel.chatRunning @Composable fun UserPickerOptionRow(icon: Painter, text: String, click: (() -> Unit)? = null, disabled: Boolean = false) { - SectionItemView(click, disabled = disabled, extraPadding = appPlatform.isDesktop) { + SectionItemView(click, disabled = disabled) { Icon(icon, text, tint = if (disabled) MaterialTheme.colors.secondary else MaterialTheme.colors.secondary) TextIconSpaced() Text(text = text, color = if (disabled) MaterialTheme.colors.secondary else Color.Unspecified)