Skip to content

Commit

Permalink
Change the card from MultiEventHomeScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
greenart7c3 committed Nov 1, 2024
1 parent 46e2493 commit b9b9192
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.greenart7c3.nostrsigner.ui.components
import android.app.Activity
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
Expand All @@ -17,7 +18,9 @@ import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.KeyboardArrowDown
import androidx.compose.material.icons.filled.KeyboardArrowUp
import androidx.compose.material3.Card
import androidx.compose.material3.CardDefaults
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Switch
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -163,6 +166,10 @@ fun MultiEventHomeScreen(
Card(
Modifier
.padding(4.dp),
colors = CardDefaults.cardColors().copy(
containerColor = MaterialTheme.colorScheme.background,
),
border = BorderStroke(1.dp, Color.Gray),
) {
Column(
Modifier
Expand Down Expand Up @@ -252,6 +259,10 @@ fun MultiEventHomeScreen(
Card(
Modifier
.padding(4.dp),
colors = CardDefaults.cardColors().copy(
containerColor = MaterialTheme.colorScheme.background,
),
border = BorderStroke(1.dp, Color.Gray),
) {
Column(
Modifier
Expand Down Expand Up @@ -612,6 +623,10 @@ fun ListItem(
.clickable {
isExpanded = !isExpanded
},
colors = CardDefaults.cardColors().copy(
containerColor = MaterialTheme.colorScheme.background,
),
border = BorderStroke(1.dp, Color.Gray),
) {
val name = LocalPreferences.getAccountName(context, intentData.currentAccount)
Row(
Expand All @@ -628,9 +643,10 @@ fun ListItem(

Row(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.spacedBy(4.dp),
modifier = Modifier
.fillMaxWidth()
.padding(4.dp),
.padding(horizontal = 8.dp, vertical = 4.dp),
) {
Icon(
Icons.Default.run {
Expand Down

0 comments on commit b9b9192

Please sign in to comment.