add the "will not be translated" message to allColors

This commit is contained in:
Helium314 2025-02-24 18:30:12 +01:00
parent f076d66f93
commit b7aadac07c

View file

@ -159,10 +159,19 @@ fun ColorsScreen(
}, },
), ),
onClickBack = onClickBack, onClickBack = onClickBack,
filteredItems = { search -> shownColors.filter { filteredItems = { search ->
it.displayName.split(" ", "_").any { it.startsWith(search, true) } val result = shownColors.filter { it.displayName.split(" ", "_").any { it.startsWith(search, true) } }
} }, if (moreColors == 2) result.toMutableList<ColorSetting?>().apply { add(0, null) }
else result
},
itemContent = { colorSetting -> itemContent = { colorSetting ->
if (colorSetting == null)
Text( // not a colorSetting, but still best done as part of the list
stringResource(R.string.all_colors_warning),
style = MaterialTheme.typography.titleSmall,
color = MaterialTheme.colorScheme.onSurfaceVariant
)
else
Row( Row(
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
modifier = Modifier modifier = Modifier