ui: replace wefunder logo with simplex logo on crowdfunding banner (#7555)

This commit is contained in:
spaced4ndy
2026-09-21 16:28:58 +00:00
committed by GitHub
parent 7e24ecb982
commit fd16048598
5 changed files with 10 additions and 28 deletions
@@ -1,21 +0,0 @@
{
"images" : [
{
"filename" : "wefunder_logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

@@ -12,6 +12,7 @@ import SimpleXChat
// Spec: spec/client/chat-list.md#GetStakeBanner
struct GetStakeBanner: View {
@EnvironmentObject var theme: AppTheme
@Environment(\.colorScheme) var colorScheme: ColorScheme
var showDismiss: Bool
let onTap: () -> Void
let onDismiss: () -> Void
@@ -31,12 +32,11 @@ struct GetStakeBanner: View {
.lineLimit(2)
}
Spacer(minLength: 6)
Image("wefunder_logo")
Image(colorScheme == .light ? "decentralized" : "decentralized-light")
.resizable()
.scaledToFit()
.frame(width: 48, height: 48)
// roughly where the phone of the badge banner's hero is: 40pt from the card edge, less its 8pt inset
.padding(.trailing, 32)
.frame(width: 37, height: 37)
.padding(.trailing, showDismiss ? 32 : 10)
}
.modifier(BannerCard())
}
@@ -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