Added glossary title + "ou"
parent
7ecf4cd68d
commit
b1bb3a1319
|
@ -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(
|
||||
|
|
|
@ -178,5 +178,3 @@ fun GlossaryList(glossaries: List<Glossary>, onGlossarySelected: (Glossary) -> U
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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" -> {
|
||||
|
|
Loading…
Reference in New Issue