From 5115ac4fe79227bb27df87a1f343e129da42f7dc Mon Sep 17 00:00:00 2001 From: another-simple-pixel Date: Sat, 16 May 2026 09:58:57 -0700 Subject: [PATCH] RTCServers: wrap Configure ICE servers toggle in SectionView card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Your ICE servers screen had its Configure-ICE toggle and the description text / editor / read-only display all directly in a raw Column with no card chrome. Wrap the toggle row in SectionView so it reads as a card matching the iOS-style facelift. The description text and the TextEditor / read-only Surface stay in the same loose Column below (they're a form/display block, not a settings row). Removed the explicit `padding = PaddingValues()` on the SectionItemViewSpaceBetween — inside SectionView it inherits CARD_ITEM_PADDING by default which is what we want now. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../common/views/usersettings/RTCServers.kt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/RTCServers.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/RTCServers.kt index 0c31b062dd..4e93d4422a 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/RTCServers.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/RTCServers.kt @@ -2,6 +2,7 @@ package chat.simplex.common.views.usersettings import SectionBottomSpacer import SectionItemViewSpaceBetween +import SectionView import androidx.compose.runtime.Composable import androidx.compose.foundation.* import androidx.compose.foundation.layout.* @@ -101,20 +102,21 @@ fun RTCServersLayout( ) { ColumnWithScrollBar { AppBarTitle(stringResource(MR.strings.your_ICE_servers)) - Column( - Modifier - .fillMaxWidth() - .padding(horizontal = DEFAULT_PADDING), - verticalArrangement = Arrangement.spacedBy(8.dp) - ) { - SectionItemViewSpaceBetween(padding = PaddingValues()) { + SectionView { + SectionItemViewSpaceBetween { Text(stringResource(MR.strings.configure_ICE_servers), Modifier.padding(end = 24.dp)) DefaultSwitch( checked = isUserRTCServers, onCheckedChange = isUserRTCServersOnOff, ) } - + } + Column( + Modifier + .fillMaxWidth() + .padding(horizontal = DEFAULT_PADDING), + verticalArrangement = Arrangement.spacedBy(8.dp) + ) { if (!isUserRTCServers) { Text(stringResource(MR.strings.using_simplex_chat_servers), lineHeight = 22.sp) } else {