mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 01:45:22 +00:00
nice
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -95,7 +95,7 @@ fun TextRow(elements: List<MessageElement>) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Chip component for displaying Cashu payments inline
|
||||
* Chip component for displaying Cashu payments inline pill
|
||||
*/
|
||||
@Composable
|
||||
fun CashuPaymentChip(
|
||||
@@ -132,7 +132,7 @@ fun CashuPaymentChip(
|
||||
// Top row: Bitcoin icon and "bitcoin" text
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
horizontalArrangement = Arrangement.spacedBy(2.dp)
|
||||
horizontalArrangement = Arrangement.spacedBy(3.dp)
|
||||
) {
|
||||
// Orange Bitcoin circle with symbol inside
|
||||
Box(
|
||||
@@ -146,9 +146,16 @@ fun CashuPaymentChip(
|
||||
) {
|
||||
Text(
|
||||
text = "₿",
|
||||
fontSize = 8.sp,
|
||||
fontSize = 10.sp,
|
||||
color = Color(0xFF140C01),
|
||||
fontFamily = FontFamily.Monospace
|
||||
fontFamily = FontFamily.Monospace,
|
||||
textAlign = TextAlign.Center,
|
||||
style = androidx.compose.ui.text.TextStyle(
|
||||
lineHeight = 10.sp,
|
||||
platformStyle = androidx.compose.ui.text.PlatformTextStyle(
|
||||
includeFontPadding = false
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -115,7 +115,8 @@ fun WalletScreen(
|
||||
2 -> MintsScreen(viewModel = walletViewModel, modifier = Modifier.weight(1f))
|
||||
3 -> WalletSettings(
|
||||
viewModel = walletViewModel,
|
||||
onBackClick = { /* No back action needed in tab navigation */ }
|
||||
onBackClick = { /* No back action needed in tab navigation */ },
|
||||
modifier = Modifier.weight(1f)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -22,22 +22,20 @@ import com.bitchat.android.wallet.viewmodel.WalletViewModel
|
||||
@Composable
|
||||
fun WalletSettings(
|
||||
viewModel: WalletViewModel = viewModel(),
|
||||
onBackClick: () -> Unit = {}
|
||||
onBackClick: () -> Unit = {},
|
||||
modifier: Modifier = Modifier
|
||||
) {
|
||||
val colorScheme = MaterialTheme.colorScheme
|
||||
var showClearDataDialog by remember { mutableStateOf(false) }
|
||||
var showExportDialog by remember { mutableStateOf(false) }
|
||||
|
||||
Column(
|
||||
modifier = Modifier
|
||||
LazyColumn(
|
||||
modifier = modifier
|
||||
.fillMaxSize()
|
||||
.background(Color.Black)
|
||||
.background(Color.Black),
|
||||
contentPadding = PaddingValues(16.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(16.dp)
|
||||
) {
|
||||
LazyColumn(
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
contentPadding = PaddingValues(16.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(16.dp)
|
||||
) {
|
||||
// Wallet Info Section
|
||||
item {
|
||||
SettingsSection(title = "Wallet Information") {
|
||||
@@ -165,7 +163,6 @@ fun WalletSettings(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Clear Data Confirmation Dialog
|
||||
if (showClearDataDialog) {
|
||||
|
||||
Reference in New Issue
Block a user