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