Adds a title to the relay settings screen

This commit is contained in:
Vitor Pamplona
2024-05-30 12:44:29 -04:00
parent 9f3d4db9dd
commit fdd1dd1855
2 changed files with 10 additions and 1 deletions
@@ -53,6 +53,7 @@ import com.vitorpamplona.amethyst.ui.actions.SaveButton
import com.vitorpamplona.amethyst.ui.screen.loggedIn.AccountViewModel
import com.vitorpamplona.amethyst.ui.theme.DoubleHorzSpacer
import com.vitorpamplona.amethyst.ui.theme.FeedPadding
import com.vitorpamplona.amethyst.ui.theme.StdHorzSpacer
import com.vitorpamplona.amethyst.ui.theme.grayText
@OptIn(ExperimentalMaterial3Api::class)
@@ -97,9 +98,16 @@ fun AllRelayListView(
title = {
Row(
modifier = Modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.End,
horizontalArrangement = Arrangement.SpaceBetween,
verticalAlignment = Alignment.CenterVertically,
) {
Spacer(modifier = StdHorzSpacer)
Text(
text = stringResource(R.string.relay_settings),
style = MaterialTheme.typography.titleLarge,
)
SaveButton(
onPost = {
kind3ViewModel.create()