From 35bd239c2f56e9d5ffea08ee60a14438306897e3 Mon Sep 17 00:00:00 2001 From: Seb3thehacker Date: Wed, 14 Oct 2026 19:17:19 -0700 Subject: [PATCH] support: Liberapay only until GitHub Sponsors is approved, and "support" instead of "donate", since giving to the LLC isn't tax-deductible --- .../app/seb3thehacker/gearslip/ui/AboutLinks.kt | 13 ++----------- .../app/seb3thehacker/gearslip/ui/DonatePrompt.kt | 12 ++++-------- .../app/seb3thehacker/gearslip/ui/SettingsScreen.kt | 2 +- 3 files changed, 7 insertions(+), 20 deletions(-) diff --git a/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/AboutLinks.kt b/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/AboutLinks.kt index d8d5dbe..6165f77 100644 --- a/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/AboutLinks.kt +++ b/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/AboutLinks.kt @@ -15,9 +15,8 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext -/** Where Gearslip lives outside the app: donations, the chat room, and the code. */ +/** Where Gearslip lives outside the app: support, the chat room, and the code. */ internal object GearslipLinks { - const val SPONSORS = "https://github.com/sponsors/Seb3thehacker" const val LIBERAPAY = "https://liberapay.com/Seb3thehacker" const val MATRIX = "https://matrix.to/#/!mf0_mgBd5KqKpc9FfX_wHp1jFCcwAtPrndIn_oGIyMk?via=matrix.org" const val SOURCE = "https://github.com/Seb3thehacker/gearslip" @@ -30,7 +29,7 @@ internal object GearslipLinks { } } -/** The two ways to donate, each opening in the browser. */ +/** The way to support Gearslip, opening in the browser. */ @Composable internal fun DonateRows() { val context = LocalContext.current @@ -41,14 +40,6 @@ internal fun DonateRows() { tint = MaterialTheme.colorScheme.onSurfaceVariant, ) } - SettingsRow( - "GitHub Sponsors", - Modifier.clickable { GearslipLinks.open(context, GearslipLinks.SPONSORS) }, - subtitle = "Give once or monthly", - icon = Icons.Filled.Favorite, - trailing = arrow, - ) - SettingsDivider() SettingsRow( "Liberapay", Modifier.clickable { GearslipLinks.open(context, GearslipLinks.LIBERAPAY) }, diff --git a/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/DonatePrompt.kt b/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/DonatePrompt.kt index 313ba00..d7f63ed 100644 --- a/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/DonatePrompt.kt +++ b/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/DonatePrompt.kt @@ -9,7 +9,6 @@ import androidx.compose.material.icons.filled.Favorite import androidx.compose.material3.AlertDialog import androidx.compose.material3.Button import androidx.compose.material3.Icon -import androidx.compose.material3.OutlinedButton import androidx.compose.material3.Text import androidx.compose.material3.TextButton import androidx.compose.runtime.Composable @@ -96,17 +95,14 @@ internal fun DonateDialog(live: Boolean) { title = { Text("Glad that drive worked") }, text = { Text( - "Gearslip is free, with no ads and no tracking. If it gets you on the road, a " + - "donation keeps it going.", + "Gearslip is free, with no ads and no tracking. If it gets you on the road, your " + + "support keeps it going.", ) }, confirmButton = { Column(Modifier.fillMaxWidth(), verticalArrangement = Arrangement.spacedBy(8.dp)) { - Button(onClick = { give(GearslipLinks.SPONSORS) }, Modifier.fillMaxWidth()) { - Text("Donate on GitHub") - } - OutlinedButton(onClick = { give(GearslipLinks.LIBERAPAY) }, Modifier.fillMaxWidth()) { - Text("Donate on Liberapay") + Button(onClick = { give(GearslipLinks.LIBERAPAY) }, Modifier.fillMaxWidth()) { + Text("Support on Liberapay") } TextButton(onClick = { DonatePrompt.answer(context, donated = false) }, Modifier.fillMaxWidth()) { Text("Not now") diff --git a/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/SettingsScreen.kt b/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/SettingsScreen.kt index 72a97dd..bee694f 100644 --- a/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/SettingsScreen.kt +++ b/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/SettingsScreen.kt @@ -121,7 +121,7 @@ fun SettingsScreen( Spacer(Modifier.height(0.dp)) SettingsSection( "Support Gearslip", - footer = "Gearslip is free, with no ads and no tracking. Donations keep it going.", + footer = "Gearslip is free, with no ads and no tracking. Your support keeps it going.", ) { DonateRows() } ConnectionSection() HelpSection(onOpenHelp, onOpenCarPreview, onOpenLogs)