[skip ci]: Move the language selection into the card

This commit is contained in:
ShirkNeko
2025-05-15 16:40:27 +08:00
parent 4d59ce435e
commit 52514ba35b

View File

@@ -546,6 +546,13 @@ fun MoreSettingsScreen(navigator: DestinationsNavigator) {
enter = fadeIn() + expandVertically(), enter = fadeIn() + expandVertically(),
exit = fadeOut() + shrinkVertically() exit = fadeOut() + shrinkVertically()
) { ) {
Surface(
shape = RoundedCornerShape(16.dp),
tonalElevation = 1.dp,
modifier = Modifier.padding(bottom = 16.dp)
) {
Column {
// 语言设置
ListItem( ListItem(
headlineContent = { Text(stringResource(R.string.language_setting)) }, headlineContent = { Text(stringResource(R.string.language_setting)) },
supportingContent = { supportingContent = {
@@ -566,21 +573,17 @@ fun MoreSettingsScreen(navigator: DestinationsNavigator) {
tint = MaterialTheme.colorScheme.onSurfaceVariant tint = MaterialTheme.colorScheme.onSurfaceVariant
) )
}, },
colors = ListItemDefaults.colors(
containerColor = Color.Transparent
),
modifier = Modifier.clickable { showLanguageDialog = true } modifier = Modifier.clickable { showLanguageDialog = true }
) )
}
AnimatedVisibility( HorizontalDivider(
visible = isAppearanceExpanded, modifier = Modifier.padding(horizontal = 16.dp),
enter = fadeIn() + expandVertically(), color = MaterialTheme.colorScheme.outlineVariant
exit = fadeOut() + shrinkVertically() )
) {
Surface(
shape = RoundedCornerShape(16.dp),
tonalElevation = 1.dp,
modifier = Modifier.padding(bottom = 16.dp)
) {
Column {
// 主题模式 // 主题模式
ListItem( ListItem(
headlineContent = { Text(stringResource(R.string.theme_mode)) }, headlineContent = { Text(stringResource(R.string.theme_mode)) },