mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-11 00:12:24 +01:00
support: Liberapay first again, then Buy Me a Coffee, Monero last
This commit is contained in:
1 parent
e8d025df47
commit
c42406f353
3 files changed
+12
-12
No files matched your search
@@ -67,7 +67,7 @@ internal object GearslipLinks {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The ways to support Gearslip: Buy Me a Coffee first, Monero last, card once it's set up. */
|
/** The ways to support Gearslip: Liberapay first, Monero last, card once it's set up. */
|
||||||
@Composable
|
@Composable
|
||||||
internal fun DonateRows() {
|
internal fun DonateRows() {
|
||||||
val context = LocalContext.current
|
val context = LocalContext.current
|
||||||
@@ -79,17 +79,17 @@ internal fun DonateRows() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
SettingsRow(
|
SettingsRow(
|
||||||
"Buy Me a Coffee",
|
"Liberapay",
|
||||||
Modifier.clickable { GearslipLinks.open(context, GearslipLinks.BUY_ME_A_COFFEE) },
|
Modifier.clickable { GearslipLinks.open(context, GearslipLinks.LIBERAPAY) },
|
||||||
subtitle = "Give once or monthly, by card. Buy Me a Coffee keeps 5%",
|
subtitle = "Give weekly or monthly",
|
||||||
icon = Icons.Filled.Favorite,
|
icon = Icons.Filled.Favorite,
|
||||||
trailing = arrow,
|
trailing = arrow,
|
||||||
)
|
)
|
||||||
SettingsDivider()
|
SettingsDivider()
|
||||||
SettingsRow(
|
SettingsRow(
|
||||||
"Liberapay",
|
"Buy Me a Coffee",
|
||||||
Modifier.clickable { GearslipLinks.open(context, GearslipLinks.LIBERAPAY) },
|
Modifier.clickable { GearslipLinks.open(context, GearslipLinks.BUY_ME_A_COFFEE) },
|
||||||
subtitle = "Give weekly or monthly",
|
subtitle = "Give once or monthly, by card. Buy Me a Coffee keeps 5%",
|
||||||
icon = Icons.Filled.Favorite,
|
icon = Icons.Filled.Favorite,
|
||||||
trailing = arrow,
|
trailing = arrow,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -109,12 +109,12 @@ internal fun DonateDialog(live: Boolean) {
|
|||||||
},
|
},
|
||||||
confirmButton = {
|
confirmButton = {
|
||||||
Column(Modifier.fillMaxWidth(), verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
Column(Modifier.fillMaxWidth(), verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||||
Button(onClick = { give(GearslipLinks.BUY_ME_A_COFFEE) }, Modifier.fillMaxWidth()) {
|
Button(onClick = { give(GearslipLinks.LIBERAPAY) }, Modifier.fillMaxWidth()) {
|
||||||
Text("Buy me a coffee")
|
|
||||||
}
|
|
||||||
OutlinedButton(onClick = { give(GearslipLinks.LIBERAPAY) }, Modifier.fillMaxWidth()) {
|
|
||||||
Text("Support on Liberapay")
|
Text("Support on Liberapay")
|
||||||
}
|
}
|
||||||
|
OutlinedButton(onClick = { give(GearslipLinks.BUY_ME_A_COFFEE) }, Modifier.fillMaxWidth()) {
|
||||||
|
Text("Buy me a coffee")
|
||||||
|
}
|
||||||
if (GearslipLinks.PAYMENT_LINK.isNotEmpty()) {
|
if (GearslipLinks.PAYMENT_LINK.isNotEmpty()) {
|
||||||
OutlinedButton(onClick = { give(GearslipLinks.PAYMENT_LINK) }, Modifier.fillMaxWidth()) {
|
OutlinedButton(onClick = { give(GearslipLinks.PAYMENT_LINK) }, Modifier.fillMaxWidth()) {
|
||||||
Text("Give once by card")
|
Text("Give once by card")
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ fun IntroScreen(onDone: () -> Unit) {
|
|||||||
"Each note shows which cars work and which still fail, so I know what to fix next.", step,
|
"Each note shows which cars work and which still fail, so I know what to fix next.", step,
|
||||||
action = "See which cars work" to { GearslipLinks.open(context, GearslipLinks.CARS) },
|
action = "See which cars work" to { GearslipLinks.open(context, GearslipLinks.CARS) },
|
||||||
outlined = true,
|
outlined = true,
|
||||||
secondAction = "Buy me a coffee" to { GearslipLinks.open(context, GearslipLinks.BUY_ME_A_COFFEE) },
|
secondAction = "Support on Liberapay" to { GearslipLinks.open(context, GearslipLinks.LIBERAPAY) },
|
||||||
) { HeartIcon(c.onTertiaryC) }
|
) { HeartIcon(c.onTertiaryC) }
|
||||||
IntroStep.CHAT -> BadgeStep(c, ::cq, ::cqSp, c.primaryC, "Come say hi.",
|
IntroStep.CHAT -> BadgeStep(c, ::cq, ::cqSp, c.primaryC, "Come say hi.",
|
||||||
"Gearslip has a chat room on Matrix. Talk with other drivers about cars, apps, and " +
|
"Gearslip has a chat room on Matrix. Talk with other drivers about cars, apps, and " +
|
||||||
|
|||||||
Reference in new issue
Block a user