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, onImportClick: () -> Unit,
onExportClick: () -> Unit, onExportClick: () -> Unit,
onSeeGlossaryClick: () -> Unit, onSeeGlossaryClick: () -> Unit,
onBackClick: () -> Unit glossary: Glossary,
onBackClick: () -> Unit,
) { ) {
@ -37,7 +38,7 @@ fun glossaryPage(
verticalArrangement = Arrangement.Top, // Align content at the top verticalArrangement = Arrangement.Top, // Align content at the top
horizontalAlignment = Alignment.CenterHorizontally horizontalAlignment = Alignment.CenterHorizontally
) { ) {
Text(text = languageManager.getGlossaryTitle(), style = MaterialTheme.typography.h3) Text(text = languageManager.getGlossaryTitle() + ": " + glossary.name, style = MaterialTheme.typography.h3)
} }
Column( 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)) Spacer(modifier = Modifier.height(16.dp))
// mettre un texte "ou"
Text("ou", style = MaterialTheme.typography.h5)
Spacer(modifier = Modifier.height(16.dp))
Button( Button(
onClick = { onClick = {
@ -246,7 +250,8 @@ fun app() {
onSeeGlossaryClick = { onSeeGlossaryClick = {
glossaryDetail = selectedGlossary?.let { loadDatasFromFile(it.jsonFilePath) }!! glossaryDetail = selectedGlossary?.let { loadDatasFromFile(it.jsonFilePath) }!!
currentPage.value = "glossaireDetail" currentPage.value = "glossaireDetail"
} },
glossary = selectedGlossary!!,
) { currentPage.value = "glossaires" } ) { currentPage.value = "glossaires" }
} }
"glossaireDetail" -> { "glossaireDetail" -> {