RTCServers: wrap Configure ICE servers toggle in SectionView card

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) <noreply@anthropic.com>
This commit is contained in:
another-simple-pixel
2026-05-16 09:58:57 -07:00
parent dc7f5427fc
commit 5115ac4fe7
@@ -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 {