mobile: update connect action icons

This commit is contained in:
Evgeny Poberezkin
2022-05-10 09:57:37 +01:00
parent 01467769bf
commit 1027bf923f
5 changed files with 11 additions and 9 deletions
@@ -17,6 +17,7 @@ import androidx.compose.ui.draw.clip
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.input.KeyboardCapitalization
import androidx.compose.ui.unit.dp
@@ -138,6 +139,7 @@ fun ProfileNameField(name: MutableState<String>, focusRequester: FocusRequester?
capitalization = KeyboardCapitalization.None,
autoCorrect = false
),
singleLine = true
singleLine = true,
cursorBrush = SolidColor(HighOrLowlight)
)
}
@@ -75,7 +75,7 @@ fun NewChatSheetLayout(addContact: () -> Unit, scanCode: () -> Unit, pasteLink:
ActionButton(
stringResource(R.string.create_one_time_link),
stringResource(R.string.to_share_with_your_contact),
Icons.Outlined.PersonAdd,
Icons.Outlined.AddLink,
click = addContact
)
}
@@ -86,7 +86,7 @@ fun NewChatSheetLayout(addContact: () -> Unit, scanCode: () -> Unit, pasteLink:
ActionButton(
stringResource(R.string.paste_received_link),
stringResource(R.string.paste_received_link_from_clipboard),
Icons.Outlined.Link,
Icons.Outlined.Article,
click = pasteLink
)
}
@@ -81,19 +81,19 @@ fun MakeConnectionLayout(
modifier = Modifier.padding(bottom = 16.dp)
)
ActionRow(
Icons.Outlined.QrCode,
Icons.Outlined.AddLink,
R.string.create_1_time_link_qr_code,
R.string.it_s_secure_to_share__only_one_contact_can_use_it,
createLink
)
ActionRow(
Icons.Outlined.Link,
Icons.Outlined.Article,
R.string.paste_the_link_you_received,
R.string.or_open_the_link_in_the_browser_and_tap_open_in_mobile,
pasteLink
)
ActionRow(
Icons.Outlined.QrCodeScanner,
Icons.Outlined.QrCode,
R.string.scan_contact_s_qr_code,
R.string.in_person_or_via_a_video_call__the_most_secure_way_to_connect,
scanCode
@@ -36,7 +36,7 @@ struct PasteToConnectView: View {
Button {
connectionLink = UIPasteboard.general.string ?? ""
} label: {
Label("Paste", systemImage: "doc.on.clipboard")
Label("Paste", systemImage: "doc.plaintext")
}
} else {
Button {
@@ -34,13 +34,13 @@ struct MakeConnection: View {
.padding(.bottom)
actionRow(
icon: "qrcode",
icon: "link.badge.plus",
title: "Create 1-time link / QR code",
text: "It's secure to share - only one contact can use it."
) { addContactAction() }
actionRow(
icon: "link",
icon: "doc.plaintext",
title: "Paste the link you received",
text: "Or open the link in the browser and tap **Open in mobile**."
) { actionSheet = .pasteLink }