feat(android): wallet screen and SDK payment surface
Expose wallet balance/address/transfers plus one-shot invoice and tip on the UniFFI SDK. Wire a Compose wallet route (QR, composers) without dropping wipe-chat. Ignore machine-local android/.cargo NDK paths.
This commit is contained in:
parent
dc52df2366
commit
7cf98bb9fe
12 changed files with 728 additions and 18 deletions
|
|
@ -29,6 +29,7 @@ import com.siriusdevops.onionwire.ui.RosterScreen
|
|||
import com.siriusdevops.onionwire.ui.RotateScreen
|
||||
import com.siriusdevops.onionwire.ui.ShareInviteScreen
|
||||
import com.siriusdevops.onionwire.ui.UnlockScreen
|
||||
import com.siriusdevops.onionwire.ui.WalletScreen
|
||||
import com.siriusdevops.onionwire.ui.OnionWireTheme
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
|
|
@ -104,6 +105,7 @@ private fun ReadyGraph(vm: WireViewModel, ready: Phase.Ready, keepAliveNote: Str
|
|||
onRotate = { nav.navigate("rotate") },
|
||||
onWipe = { scope.launch { vm.wipeMessages() } },
|
||||
onLock = vm::lock,
|
||||
onOpenWallet = { nav.navigate("wallet") },
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -130,6 +132,10 @@ private fun ReadyGraph(vm: WireViewModel, ready: Phase.Ready, keepAliveNote: Str
|
|||
)
|
||||
}
|
||||
|
||||
composable("wallet") {
|
||||
WalletScreen(vm = vm, onBack = { nav.popBackStack() })
|
||||
}
|
||||
|
||||
composable(
|
||||
route = "chat/{pk}",
|
||||
arguments = listOf(navArgument("pk") { type = NavType.StringType }),
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ import uniffi.onionwire_sdk.InviteInfo
|
|||
import uniffi.onionwire_sdk.OutboxRow
|
||||
import uniffi.onionwire_sdk.RotateOutcome
|
||||
import uniffi.onionwire_sdk.SendState
|
||||
import uniffi.onionwire_sdk.TransferRow
|
||||
import uniffi.onionwire_sdk.Wire
|
||||
import uniffi.onionwire_sdk.decodeInvite
|
||||
import java.io.File
|
||||
|
|
@ -405,4 +406,26 @@ class WireViewModel(app: Application) : AndroidViewModel(app) {
|
|||
}
|
||||
|
||||
suspend fun decode(invite: String): InviteInfo = decodeInvite(invite)
|
||||
|
||||
// --- Wallet & payments -------------------------------------------------
|
||||
// These mirror the SDK surface added for the wallet screen. Payment sends
|
||||
// are one-shot: if the peer's onion is unreachable, `send_*` fails now.
|
||||
// They are NOT queued through the outbox like chat messages — that is a
|
||||
// deliberate choice in the core, not a bug.
|
||||
|
||||
suspend fun walletBalance(): String = requireWire().walletBalance()
|
||||
|
||||
suspend fun walletReceiveAddress(): String? = runCatching {
|
||||
requireWire().walletReceiveAddress()
|
||||
}.getOrElse { null }
|
||||
|
||||
suspend fun walletRecentTransfers(cap: Int = 25): List<TransferRow> = runCatching {
|
||||
requireWire().walletRecentTransfers(cap.toUInt())
|
||||
}.getOrElse { emptyList() }
|
||||
|
||||
suspend fun sendInvoice(pubkeyHex: String, amountXmr: String, memo: String = ""): Result<Unit> =
|
||||
runCatching { requireWire().sendInvoice(pubkeyHex, amountXmr, memo) }
|
||||
|
||||
suspend fun sendTip(pubkeyHex: String, amountXmr: String, memo: String = ""): Result<Unit> =
|
||||
runCatching { requireWire().sendTip(pubkeyHex, amountXmr, memo) }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ fun RosterScreen(
|
|||
onRotate: () -> Unit,
|
||||
onWipe: () -> Unit,
|
||||
onLock: () -> Unit,
|
||||
onOpenWallet: () -> Unit,
|
||||
) {
|
||||
var confirmWipe by remember { mutableStateOf(false) }
|
||||
|
||||
|
|
@ -96,12 +97,13 @@ fun RosterScreen(
|
|||
|
||||
Spacer(Modifier.height(8.dp))
|
||||
Row(
|
||||
Modifier.fillMaxWidth().padding(horizontal = 8.dp),
|
||||
modifier = Modifier.fillMaxWidth().padding(horizontal = 8.dp),
|
||||
horizontalArrangement = Arrangement.SpaceEvenly,
|
||||
) {
|
||||
TextButton(onClick = onShare) { Text("Invite") }
|
||||
TextButton(onClick = onPaste) { Text("Add") }
|
||||
TextButton(onClick = onRotate) { Text("Rotate") }
|
||||
TextButton(onClick = onOpenWallet) { Text("Wallet") }
|
||||
TextButton(onClick = { confirmWipe = true }) { Text("Wipe chat") }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,366 @@
|
|||
package com.siriusdevops.onionwire.ui
|
||||
|
||||
import android.graphics.Bitmap
|
||||
import android.graphics.Color
|
||||
import androidx.compose.foundation.Image
|
||||
import androidx.compose.foundation.border
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
import androidx.compose.foundation.layout.aspectRatio
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.lazy.items
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material3.Button
|
||||
import androidx.compose.material3.Card
|
||||
import androidx.compose.material3.CardDefaults
|
||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.OutlinedButton
|
||||
import androidx.compose.material3.OutlinedTextField
|
||||
import androidx.compose.material3.Scaffold
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.material3.TextButton
|
||||
import androidx.compose.material3.TopAppBar
|
||||
import androidx.compose.material3.TopAppBarDefaults
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.rememberCoroutineScope
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.asImageBitmap
|
||||
import androidx.compose.ui.layout.ContentScale
|
||||
import androidx.compose.ui.text.font.FontFamily
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||
import com.google.zxing.BarcodeFormat
|
||||
import com.google.zxing.EncodeHintType
|
||||
import com.google.zxing.qrcode.QRCodeWriter
|
||||
import com.siriusdevops.onionwire.WireViewModel
|
||||
import kotlinx.coroutines.launch
|
||||
import uniffi.onionwire_sdk.FriendInfo
|
||||
import uniffi.onionwire_sdk.TransferRow
|
||||
|
||||
private enum class PayKind { Invoice, Tip }
|
||||
|
||||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
@Composable
|
||||
fun WalletScreen(
|
||||
vm: WireViewModel,
|
||||
onBack: () -> Unit,
|
||||
) {
|
||||
val friends by vm.friends.collectAsStateWithLifecycle()
|
||||
val scope = rememberCoroutineScope()
|
||||
var showQr by remember { mutableStateOf(false) }
|
||||
var balance by remember { mutableStateOf<String?>(null) }
|
||||
var address by remember { mutableStateOf<String?>(null) }
|
||||
var transfers by remember { mutableStateOf<List<TransferRow>>(emptyList()) }
|
||||
var error by remember { mutableStateOf<String?>(null) }
|
||||
var composer by remember { mutableStateOf<PayKind?>(null) }
|
||||
|
||||
suspend fun reload() {
|
||||
runCatching { balance = vm.walletBalance() }
|
||||
.onFailure { error = it.message ?: it.toString() }
|
||||
runCatching { address = vm.walletReceiveAddress() }
|
||||
runCatching { transfers = vm.walletRecentTransfers(25) }
|
||||
}
|
||||
|
||||
LaunchedEffect(Unit) { reload() }
|
||||
|
||||
Scaffold(
|
||||
topBar = {
|
||||
TopAppBar(
|
||||
title = { Text("Wallet") },
|
||||
navigationIcon = {
|
||||
TextButton(onClick = onBack) { Text("Back") }
|
||||
},
|
||||
colors = TopAppBarDefaults.topAppBarColors(
|
||||
containerColor = MaterialTheme.colorScheme.background,
|
||||
),
|
||||
)
|
||||
},
|
||||
) { pad ->
|
||||
Column(
|
||||
Modifier.padding(pad).fillMaxSize(),
|
||||
) {
|
||||
Card(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 12.dp, vertical = 8.dp),
|
||||
colors = CardDefaults.cardColors(
|
||||
containerColor = MaterialTheme.colorScheme.surfaceVariant,
|
||||
),
|
||||
) {
|
||||
Column(
|
||||
Modifier.padding(16.dp),
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
) {
|
||||
Text(
|
||||
when (balance) {
|
||||
null -> "loading…"
|
||||
"off" -> "wallet off"
|
||||
"err" -> "balance —"
|
||||
else -> balance ?: ""
|
||||
},
|
||||
style = MaterialTheme.typography.headlineSmall,
|
||||
fontFamily = FontFamily.Monospace,
|
||||
)
|
||||
val addr = address
|
||||
if (addr != null) {
|
||||
Spacer(Modifier.height(8.dp))
|
||||
Text(
|
||||
"receive address",
|
||||
style = MaterialTheme.typography.labelSmall,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
)
|
||||
Spacer(Modifier.height(4.dp))
|
||||
Text(
|
||||
addr,
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
fontFamily = FontFamily.Monospace,
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
)
|
||||
TextButton(onClick = { showQr = !showQr }) {
|
||||
Text(if (showQr) "Hide QR" else "Show QR")
|
||||
}
|
||||
if (showQr) {
|
||||
val qr = remember(addr) { generateQrBitmap(addr) }
|
||||
qr?.let { bm ->
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.aspectRatio(1f)
|
||||
.border(
|
||||
1.dp,
|
||||
MaterialTheme.colorScheme.outline,
|
||||
RoundedCornerShape(8.dp),
|
||||
)
|
||||
.padding(8.dp),
|
||||
contentAlignment = Alignment.Center,
|
||||
) {
|
||||
Image(
|
||||
bitmap = bm.asImageBitmap(),
|
||||
contentDescription = "QR code for receive address",
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
contentScale = ContentScale.Fit,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (transfers.isNotEmpty()) {
|
||||
Text(
|
||||
"recent transfers",
|
||||
style = MaterialTheme.typography.titleSmall,
|
||||
modifier = Modifier.padding(horizontal = 12.dp, vertical = 4.dp),
|
||||
)
|
||||
LazyColumn(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.weight(1f, fill = false)
|
||||
.padding(horizontal = 12.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(4.dp),
|
||||
) {
|
||||
items(transfers, key = { it.txid }) { t ->
|
||||
TransferCard(t)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Spacer(Modifier.weight(1f))
|
||||
}
|
||||
|
||||
val kind = composer
|
||||
if (kind != null) {
|
||||
PayComposer(
|
||||
kind = kind,
|
||||
friends = friends,
|
||||
onCancel = { composer = null },
|
||||
onSend = { pk, amount, memo ->
|
||||
scope.launch {
|
||||
error = null
|
||||
val result = when (kind) {
|
||||
PayKind.Invoice -> vm.sendInvoice(pk, amount, memo)
|
||||
PayKind.Tip -> vm.sendTip(pk, amount, memo)
|
||||
}
|
||||
result.fold(
|
||||
onSuccess = {
|
||||
composer = null
|
||||
reload()
|
||||
},
|
||||
onFailure = { error = it.message ?: it.toString() },
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
} else {
|
||||
Row(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(12.dp),
|
||||
horizontalArrangement = Arrangement.spacedBy(8.dp),
|
||||
) {
|
||||
OutlinedButton(
|
||||
onClick = { composer = PayKind.Invoice },
|
||||
modifier = Modifier.weight(1f),
|
||||
) { Text("Invoice") }
|
||||
OutlinedButton(
|
||||
onClick = { composer = PayKind.Tip },
|
||||
modifier = Modifier.weight(1f),
|
||||
) { Text("Tip") }
|
||||
}
|
||||
}
|
||||
|
||||
error?.let {
|
||||
Text(
|
||||
it,
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = MaterialTheme.colorScheme.error,
|
||||
modifier = Modifier.padding(horizontal = 12.dp, vertical = 4.dp),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun TransferCard(t: TransferRow) {
|
||||
Card(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
colors = CardDefaults.cardColors(
|
||||
containerColor = MaterialTheme.colorScheme.surfaceVariant,
|
||||
),
|
||||
) {
|
||||
Row(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(12.dp),
|
||||
horizontalArrangement = Arrangement.SpaceBetween,
|
||||
) {
|
||||
Column(modifier = Modifier.weight(1f)) {
|
||||
Text(
|
||||
t.txid.take(16) + "…",
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
fontFamily = FontFamily.Monospace,
|
||||
)
|
||||
Text(
|
||||
t.address,
|
||||
style = MaterialTheme.typography.labelSmall,
|
||||
fontFamily = FontFamily.Monospace,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
)
|
||||
}
|
||||
Text(
|
||||
t.amount,
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
fontFamily = FontFamily.Monospace,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun PayComposer(
|
||||
kind: PayKind,
|
||||
friends: List<FriendInfo>,
|
||||
onCancel: () -> Unit,
|
||||
onSend: (pubkeyHex: String, amount: String, memo: String) -> Unit,
|
||||
) {
|
||||
var selected by remember {
|
||||
mutableStateOf(friends.singleOrNull()?.pubkeyHex)
|
||||
}
|
||||
var amount by remember { mutableStateOf("") }
|
||||
var memo by remember { mutableStateOf("") }
|
||||
val ready = selected != null && amount.trim().isNotEmpty()
|
||||
|
||||
Card(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(12.dp),
|
||||
colors = CardDefaults.cardColors(
|
||||
containerColor = MaterialTheme.colorScheme.surfaceVariant,
|
||||
),
|
||||
) {
|
||||
Column(Modifier.padding(12.dp)) {
|
||||
Text(
|
||||
if (kind == PayKind.Invoice) "Send invoice" else "Send tip",
|
||||
style = MaterialTheme.typography.titleSmall,
|
||||
)
|
||||
Spacer(Modifier.height(8.dp))
|
||||
if (friends.isEmpty()) {
|
||||
Text(
|
||||
"Add a friend first. Invoice and tip are one-shot to a peer onion.",
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
)
|
||||
} else {
|
||||
Text("to", style = MaterialTheme.typography.labelSmall)
|
||||
friends.forEach { f ->
|
||||
val label = f.petname?.takeIf { it.isNotBlank() } ?: f.fingerprint
|
||||
TextButton(onClick = { selected = f.pubkeyHex }) {
|
||||
Text(if (selected == f.pubkeyHex) "• $label" else label)
|
||||
}
|
||||
}
|
||||
}
|
||||
OutlinedTextField(
|
||||
value = amount,
|
||||
onValueChange = { amount = it },
|
||||
singleLine = true,
|
||||
label = { Text("amount XMR") },
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
)
|
||||
Spacer(Modifier.height(8.dp))
|
||||
OutlinedTextField(
|
||||
value = memo,
|
||||
onValueChange = { memo = it },
|
||||
singleLine = true,
|
||||
label = { Text("memo (optional)") },
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
)
|
||||
Spacer(Modifier.height(8.dp))
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
horizontalArrangement = Arrangement.End,
|
||||
) {
|
||||
TextButton(onClick = onCancel) { Text("Cancel") }
|
||||
Button(
|
||||
onClick = {
|
||||
val pk = selected ?: return@Button
|
||||
onSend(pk, amount.trim(), memo.trim())
|
||||
},
|
||||
enabled = ready,
|
||||
) { Text("Send") }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Generate a QR bitmap for the given URI string. Returns null on encode failure. */
|
||||
internal fun generateQrBitmap(uri: String): Bitmap? {
|
||||
return try {
|
||||
val hints = mapOf(EncodeHintType.MARGIN to 1)
|
||||
val writer = QRCodeWriter()
|
||||
val matrix = writer.encode(uri, BarcodeFormat.QR_CODE, 512, 512, hints)
|
||||
val buf = Bitmap.createBitmap(matrix.width, matrix.height, Bitmap.Config.ARGB_8888)
|
||||
for (y in 0 until matrix.height) {
|
||||
for (x in 0 until matrix.width) {
|
||||
buf.setPixel(x, y, if (matrix.get(x, y)) Color.BLACK else Color.WHITE)
|
||||
}
|
||||
}
|
||||
buf
|
||||
} catch (_: Exception) {
|
||||
null
|
||||
}
|
||||
}
|
||||
|
|
@ -1,4 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- OnionWire adaptive-icon background: deep indigo-to-purple gradient that
|
||||
matches the app's dark theme and lets the cyan-networked onion bulb pop. -->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
|
|
@ -7,4 +9,14 @@
|
|||
<path
|
||||
android:fillColor="#0B0B10"
|
||||
android:pathData="M0,0h108v108h-108z" />
|
||||
<path
|
||||
android:fillColor="#1A0A2E"
|
||||
android:pathData="M0,0 L108,0 L108,108 L0,108 Z"
|
||||
android:fillAlpha="0.55" />
|
||||
<!-- subtle radial highlight toward the center so the icon has depth on
|
||||
launchers that blur the background -->
|
||||
<path
|
||||
android:fillColor="#3D1A5C"
|
||||
android:fillAlpha="0.28"
|
||||
android:pathData="M54,20 m-34,0 a34,34 0 1,1 68,0 a34,34 0 1,1 -68,0" />
|
||||
</vector>
|
||||
|
|
|
|||
|
|
@ -1,41 +1,138 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Onion bulb. Adaptive-icon foreground: keep art inside the 66dp safe zone. -->
|
||||
<!-- OnionWire launcher foreground: Tor onion bulb with layered rings and
|
||||
cyan network-connectivity lines. Keep art inside the 66dp safe zone
|
||||
(the inner 66x66 of the 108x108 viewport) so it survives the adaptive
|
||||
icon mask on every OEM launcher. -->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
|
||||
<!-- bulb -->
|
||||
<!-- translucent backdrop so the bulb reads against any mask -->
|
||||
<path
|
||||
android:fillColor="#7C4DFF"
|
||||
android:pathData="M54,28 C72,28 82,46 82,62 C82,78 69,88 54,88 C39,88 26,78 26,62 C26,46 36,28 54,28 Z" />
|
||||
android:fillColor="#000000"
|
||||
android:fillAlpha="0.18"
|
||||
android:pathData="M54,30 m-26,0 a26,26 0 1,1 52,0 a26,26 0 1,1 -52,0" />
|
||||
|
||||
<!-- sprout -->
|
||||
<!-- onion bulb: deep purple-violet built from nested ellipses -->
|
||||
<path
|
||||
android:fillColor="#4A148C"
|
||||
android:pathData="M54,30 C74,30 86,48 86,64 C86,78 72,86 54,86 C36,86 22,78 22,64 C22,48 34,30 54,30 Z" />
|
||||
<path
|
||||
android:fillColor="#7B1FA2"
|
||||
android:pathData="M54,34 C70,34 80,48 80,62 C80,75 69,82 54,82 C39,82 28,75 28,62 C28,48 38,34 54,34 Z" />
|
||||
<path
|
||||
android:fillColor="#9C27B0"
|
||||
android:pathData="M54,38 C66,38 74,49 74,60 C74,71 65,76 54,76 C43,76 34,71 34,60 C34,49 42,38 54,38 Z" />
|
||||
|
||||
<!-- glossy highlight -->
|
||||
<path
|
||||
android:fillColor="#CE93D8"
|
||||
android:fillAlpha="0.55"
|
||||
android:pathData="M46,44 C46,44 50,38 56,38 C62,38 66,44 66,44 C66,44 60,56 56,58 C52,60 48,56 46,44 Z" />
|
||||
|
||||
<!-- sprout crown at top: three-point silhouette -->
|
||||
<path
|
||||
android:strokeColor="#38F2C7"
|
||||
android:strokeWidth="3"
|
||||
android:strokeWidth="2.2"
|
||||
android:strokeLineCap="round"
|
||||
android:pathData="M54,28 L54,18" />
|
||||
|
||||
<!-- layers -->
|
||||
android:fillColor="#38F2C7"
|
||||
android:fillAlpha="0.9"
|
||||
android:pathData="M54,30 L50,20 L54,26 L58,20 Z" />
|
||||
<path
|
||||
android:strokeColor="#38F2C7"
|
||||
android:strokeWidth="2.5"
|
||||
android:strokeWidth="1.6"
|
||||
android:strokeLineCap="round"
|
||||
android:pathData="M54,30 L54,19" />
|
||||
|
||||
<!-- layered rings -->
|
||||
<path
|
||||
android:strokeColor="#38F2C7"
|
||||
android:strokeWidth="2.0"
|
||||
android:strokeLineCap="round"
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M38,40 C33,54 35,74 48,84" />
|
||||
android:pathData="M36,42 C30,56 33,74 46,82" />
|
||||
<path
|
||||
android:strokeColor="#38F2C7"
|
||||
android:strokeWidth="2.5"
|
||||
android:strokeWidth="2.0"
|
||||
android:strokeLineCap="round"
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M70,40 C75,54 73,74 60,84" />
|
||||
android:pathData="M72,42 C78,56 75,74 62,82" />
|
||||
<path
|
||||
android:strokeColor="#38F2C7"
|
||||
android:strokeWidth="2.0"
|
||||
android:strokeLineCap="round"
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M40,38 C30,52 34,70 50,80" />
|
||||
<path
|
||||
android:strokeColor="#38F2C7"
|
||||
android:strokeWidth="2.0"
|
||||
android:strokeLineCap="round"
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M68,38 C78,52 74,70 58,80" />
|
||||
|
||||
<!-- vertical seam -->
|
||||
<path
|
||||
android:strokeColor="#0B0B10"
|
||||
android:strokeWidth="2.5"
|
||||
android:strokeWidth="1.8"
|
||||
android:strokeLineCap="round"
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M54,32 L54,86" />
|
||||
android:pathData="M54,32 L54,84" />
|
||||
|
||||
<!-- cyan network lines + nodes -->
|
||||
<path
|
||||
android:strokeColor="#38F2C7"
|
||||
android:strokeWidth="1.0"
|
||||
android:strokeLineCap="round"
|
||||
android:fillColor="#38F2C7"
|
||||
android:pathData="M42,52 L50,48 L42,44" />
|
||||
<path
|
||||
android:strokeColor="#38F2C7"
|
||||
android:strokeWidth="1.0"
|
||||
android:strokeLineCap="round"
|
||||
android:fillColor="#38F2C7"
|
||||
android:pathData="M66,52 L58,48 L66,44" />
|
||||
<path
|
||||
android:strokeColor="#38F2C7"
|
||||
android:strokeWidth="1.0"
|
||||
android:strokeLineCap="round"
|
||||
android:pathData="M54,56 L54,64" />
|
||||
<path
|
||||
android:strokeColor="#38F2C7"
|
||||
android:strokeWidth="1.0"
|
||||
android:strokeLineCap="round"
|
||||
android:pathData="M46,60 L54,64 L62,60" />
|
||||
|
||||
<path
|
||||
android:fillColor="#38F2C7"
|
||||
android:pathData="M42,52 m-1.4,0 a1.4,1.4 0 1,1 2.8,0 a1.4,1.4 0 1,1 -2.8,0" />
|
||||
<path
|
||||
android:fillColor="#38F2C7"
|
||||
android:pathData="M50,48 m-1.4,0 a1.4,1.4 0 1,1 2.8,0 a1.4,1.4 0 1,1 -2.8,0" />
|
||||
<path
|
||||
android:fillColor="#38F2C7"
|
||||
android:pathData="M42,44 m-1.4,0 a1.4,1.4 0 1,1 2.8,0 a1.4,1.4 0 1,1 -2.8,0" />
|
||||
<path
|
||||
android:fillColor="#38F2C7"
|
||||
android:pathData="M66,52 m-1.4,0 a1.4,1.4 0 1,1 2.8,0 a1.4,1.4 0 1,1 -2.8,0" />
|
||||
<path
|
||||
android:fillColor="#38F2C7"
|
||||
android:pathData="M58,48 m-1.4,0 a1.4,1.4 0 1,1 2.8,0 a1.4,1.4 0 1,1 -2.8,0" />
|
||||
<path
|
||||
android:fillColor="#38F2C7"
|
||||
android:pathData="M66,44 m-1.4,0 a1.4,1.4 0 1,1 2.8,0 a1.4,1.4 0 1,1 -2.8,0" />
|
||||
<path
|
||||
android:fillColor="#38F2C7"
|
||||
android:pathData="M54,56 m-1.4,0 a1.4,1.4 0 1,1 2.8,0 a1.4,1.4 0 1,1 -2.8,0" />
|
||||
<path
|
||||
android:fillColor="#38F2C7"
|
||||
android:pathData="M54,64 m-1.4,0 a1.4,1.4 0 1,1 2.8,0 a1.4,1.4 0 1,1 -2.8,0" />
|
||||
<path
|
||||
android:fillColor="#38F2C7"
|
||||
android:pathData="M46,60 m-1.4,0 a1.4,1.4 0 1,1 2.8,0 a1.4,1.4 0 1,1 -2.8,0" />
|
||||
<path
|
||||
android:fillColor="#38F2C7"
|
||||
android:pathData="M62,60 m-1.4,0 a1.4,1.4 0 1,1 2.8,0 a1.4,1.4 0 1,1 -2.8,0" />
|
||||
|
||||
</vector>
|
||||
|
|
|
|||
Loading…
Reference in a new issue