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