mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-27 00:39:00 +00:00
ui: replace wefunder logo with simplex logo on crowdfunding banner (#7555)
This commit is contained in:
+6
-3
@@ -37,8 +37,7 @@ fun GetStakeBanner(showDismiss: Boolean, onTap: () -> Unit, onDismiss: () -> Uni
|
||||
Row(
|
||||
Modifier
|
||||
.bannerCard(onTap)
|
||||
// the logo sits roughly where the phone of the badge banner's hero is, 40dp from the card edge
|
||||
.padding(start = 16.dp, end = 40.dp, top = 12.dp, bottom = 12.dp),
|
||||
.padding(start = 16.dp, end = if (showDismiss) 40.dp else 18.dp, top = 12.dp, bottom = 12.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
horizontalArrangement = Arrangement.spacedBy(6.dp)
|
||||
) {
|
||||
@@ -59,7 +58,11 @@ fun GetStakeBanner(showDismiss: Boolean, onTap: () -> Unit, onDismiss: () -> Uni
|
||||
overflow = TextOverflow.Ellipsis
|
||||
)
|
||||
}
|
||||
Image(painterResource(MR.images.wefunder_logo), contentDescription = null, modifier = Modifier.size(48.dp))
|
||||
Image(
|
||||
painterResource(if (isInDarkTheme()) MR.images.decentralized_light else MR.images.decentralized),
|
||||
contentDescription = null,
|
||||
modifier = Modifier.size(37.dp)
|
||||
)
|
||||
}
|
||||
|
||||
if (showDismiss) {
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 24 KiB |
Reference in New Issue
Block a user