Remote edit dialog UI improved

This commit is contained in:
Abdelilah El Aissaoui 2022-08-04 23:59:58 +02:00
parent 7f42548b53
commit b9fff2dc43

View File

@ -81,7 +81,7 @@ fun EditRemotesDialog(
) {
Text(
text = "Remotes",
color = MaterialTheme.colors.primaryTextColor,
style = MaterialTheme.typography.h3,
modifier = Modifier.padding(vertical = 8.dp),
)
@ -109,6 +109,7 @@ fun EditRemotesDialog(
.fillMaxHeight()
.background(MaterialTheme.colors.background),
) {
if (remotesEditorData.listRemotes.isNotEmpty()) {
LazyColumn(
modifier = Modifier.weight(1f)
) {
@ -131,6 +132,19 @@ fun EditRemotesDialog(
)
}
}
} else {
Box (
modifier = Modifier
.weight(1f)
.fillMaxWidth(),
contentAlignment = Alignment.Center,
) {
Text(
text = "No available remotes",
style = MaterialTheme.typography.body2.copy(color = MaterialTheme.colors.secondaryTextColor)
)
}
}
Row(
modifier = Modifier