mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-27 01:56:26 +00:00
add the "will not be translated" message to allColors
This commit is contained in:
parent
f076d66f93
commit
b7aadac07c
1 changed files with 41 additions and 32 deletions
|
@ -159,10 +159,19 @@ fun ColorsScreen(
|
|||
},
|
||||
),
|
||||
onClickBack = onClickBack,
|
||||
filteredItems = { search -> shownColors.filter {
|
||||
it.displayName.split(" ", "_").any { it.startsWith(search, true) }
|
||||
} },
|
||||
filteredItems = { search ->
|
||||
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 ->
|
||||
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(
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
modifier = Modifier
|
||||
|
|
Loading…
Add table
Reference in a new issue