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

View File

@ -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()

View File

@ -818,6 +818,7 @@
<string name="search_relays_not_found_editing">Insert between 13 relays to use when searching for content or tagging users. Make sure your chosen relays implement NIP-50</string>
<string name="search_relays_not_found_examples">Good options are:\n - nostr.wine\n - relay.nostr.band\n - relay.noswhere.com</string>
<string name="relay_settings">Relay Settings</string>
<string name="public_home_section">Public Home Relays</string>
<string name="public_home_section_explainer">This relay type stores all your content. Amethyst will send your posts here and others will use these relays to find your content. Insert between 13 relays. They can be personal relays, paid relays or public relays.</string>
<string name="public_notif_section">Public Inbox Relays</string>