Added glossary title + "ou"

main
Cemal Odabasioglu 2023-12-19 16:17:41 +01:00
parent 7ecf4cd68d
commit b1bb3a1319
3 changed files with 9 additions and 5 deletions

View File

@ -28,7 +28,8 @@ fun glossaryPage(
onImportClick: () -> Unit,
onExportClick: () -> Unit,
onSeeGlossaryClick: () -> Unit,
onBackClick: () -> Unit
glossary: Glossary,
onBackClick: () -> Unit,
) {
@ -37,7 +38,7 @@ fun glossaryPage(
verticalArrangement = Arrangement.Top, // Align content at the top
horizontalAlignment = Alignment.CenterHorizontally
) {
Text(text = languageManager.getGlossaryTitle(), style = MaterialTheme.typography.h3)
Text(text = languageManager.getGlossaryTitle() + ": " + glossary.name, style = MaterialTheme.typography.h3)
}
Column(

View File

@ -178,5 +178,3 @@ fun GlossaryList(glossaries: List<Glossary>, onGlossarySelected: (Glossary) -> U
}
}

View File

@ -105,6 +105,10 @@ fun app() {
}
Spacer(modifier = Modifier.height(16.dp))
// mettre un texte "ou"
Text("ou", style = MaterialTheme.typography.h5)
Spacer(modifier = Modifier.height(16.dp))
Button(
onClick = {
@ -246,7 +250,8 @@ fun app() {
onSeeGlossaryClick = {
glossaryDetail = selectedGlossary?.let { loadDatasFromFile(it.jsonFilePath) }!!
currentPage.value = "glossaireDetail"
}
},
glossary = selectedGlossary!!,
) { currentPage.value = "glossaires" }
}
"glossaireDetail" -> {