mirror of
https://github.com/kalarina-bit/Sparkledns.git
synced 2026-11-22 07:36:09 +00:00
Use a heart instead of the logo on the support card
This commit is contained in:
@@ -199,17 +199,13 @@ private fun AboutContent(modifier: Modifier, onOpenLicenses: () -> Unit) {
|
|||||||
// The server costs money every month; the card asks for help without getting in the way
|
// The server costs money every month; the card asks for help without getting in the way
|
||||||
@Composable
|
@Composable
|
||||||
private fun SupportCard(onDonate: () -> Unit) {
|
private fun SupportCard(onDonate: () -> Unit) {
|
||||||
val context = LocalContext.current
|
|
||||||
Card(Modifier.fillMaxWidth()) {
|
Card(Modifier.fillMaxWidth()) {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier.padding(start = 16.dp, top = 16.dp, end = 16.dp),
|
modifier = Modifier.padding(start = 16.dp, top = 16.dp, end = 16.dp),
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
) {
|
) {
|
||||||
Image(
|
// The logo is already at the top of the screen
|
||||||
remember { AppLogo.get(context) },
|
IconBadge(R.drawable.ic_donate, size = 48.dp)
|
||||||
contentDescription = null,
|
|
||||||
modifier = Modifier.size(48.dp),
|
|
||||||
)
|
|
||||||
Spacer(Modifier.width(14.dp))
|
Spacer(Modifier.width(14.dp))
|
||||||
Column(Modifier.weight(1f)) {
|
Column(Modifier.weight(1f)) {
|
||||||
Text(stringResource(R.string.support_title), style = MaterialTheme.typography.titleMedium)
|
Text(stringResource(R.string.support_title), style = MaterialTheme.typography.titleMedium)
|
||||||
|
|||||||
Reference in New Issue
Block a user