mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-09 16:17:44 +00:00
add better icon for using default setting
This commit is contained in:
parent
e7acef5396
commit
f7cf1762b5
5 changed files with 34 additions and 12 deletions
|
@ -137,7 +137,7 @@ fun <T: Any> SearchScreen(
|
|||
else onClickBack()
|
||||
}) {
|
||||
Icon(
|
||||
painterResource(R.drawable.baseline_arrow_back_24),
|
||||
painterResource(R.drawable.ic_arrow_back),
|
||||
stringResource(R.string.spoken_description_action_previous)
|
||||
)
|
||||
}
|
||||
|
|
|
@ -68,6 +68,10 @@ import java.util.Locale
|
|||
// todo:
|
||||
// "+" layouts for languages that have one are not selectable, they should use the language name
|
||||
// fix the display name (why is the layout always added now e.g. after adding a secondary locale, when it's not there initially?)
|
||||
// some way of editing, adding and removing main layouts
|
||||
// here or in layouts screen?
|
||||
// layouts screen: that would be the purpose, but there is no default for main, and it's language dependent
|
||||
// here we need at least an indicator which layouts are custom (edit or delete buttons)
|
||||
@Composable
|
||||
fun SubtypeDialog(
|
||||
onDismissRequest: () -> Unit,
|
||||
|
@ -366,9 +370,8 @@ private fun DefaultButton(
|
|||
onClick = onDefault,
|
||||
enabled = !isDefault
|
||||
) {
|
||||
Icon(painterResource(R.drawable.sym_keyboard_settings_holo), "default") // todo: more understandable icon!
|
||||
Icon(painterResource(R.drawable.ic_settings_default), "default")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private fun getAvailableSecondaryLocales(context: Context, mainLocale: Locale): List<Locale> =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue