mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 03:58:48 +00:00
Fix spacing between donate gateway buttons.
This commit is contained in:
committed by
Clark Chen
parent
23ebccc041
commit
592dfec8db
@@ -76,8 +76,6 @@ class GatewaySelectorBottomSheet : DSLSettingsBottomSheetFragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
state.gatewayOrderStrategy.orderedGateways.forEachIndexed { index, gateway ->
|
state.gatewayOrderStrategy.orderedGateways.forEachIndexed { index, gateway ->
|
||||||
space(16.dp)
|
|
||||||
|
|
||||||
when (gateway) {
|
when (gateway) {
|
||||||
GatewayResponse.Gateway.GOOGLE_PAY -> renderGooglePayButton(state)
|
GatewayResponse.Gateway.GOOGLE_PAY -> renderGooglePayButton(state)
|
||||||
GatewayResponse.Gateway.PAYPAL -> renderPayPalButton(state)
|
GatewayResponse.Gateway.PAYPAL -> renderPayPalButton(state)
|
||||||
@@ -93,6 +91,8 @@ class GatewaySelectorBottomSheet : DSLSettingsBottomSheetFragment() {
|
|||||||
|
|
||||||
private fun DSLConfiguration.renderGooglePayButton(state: GatewaySelectorState) {
|
private fun DSLConfiguration.renderGooglePayButton(state: GatewaySelectorState) {
|
||||||
if (state.isGooglePayAvailable) {
|
if (state.isGooglePayAvailable) {
|
||||||
|
space(16.dp)
|
||||||
|
|
||||||
customPref(
|
customPref(
|
||||||
GooglePayButton.Model(
|
GooglePayButton.Model(
|
||||||
isEnabled = true,
|
isEnabled = true,
|
||||||
@@ -108,6 +108,8 @@ class GatewaySelectorBottomSheet : DSLSettingsBottomSheetFragment() {
|
|||||||
|
|
||||||
private fun DSLConfiguration.renderPayPalButton(state: GatewaySelectorState) {
|
private fun DSLConfiguration.renderPayPalButton(state: GatewaySelectorState) {
|
||||||
if (state.isPayPalAvailable) {
|
if (state.isPayPalAvailable) {
|
||||||
|
space(16.dp)
|
||||||
|
|
||||||
customPref(
|
customPref(
|
||||||
PayPalButton.Model(
|
PayPalButton.Model(
|
||||||
onClick = {
|
onClick = {
|
||||||
@@ -123,6 +125,8 @@ class GatewaySelectorBottomSheet : DSLSettingsBottomSheetFragment() {
|
|||||||
|
|
||||||
private fun DSLConfiguration.renderCreditCardButton(state: GatewaySelectorState) {
|
private fun DSLConfiguration.renderCreditCardButton(state: GatewaySelectorState) {
|
||||||
if (state.isCreditCardAvailable) {
|
if (state.isCreditCardAvailable) {
|
||||||
|
space(16.dp)
|
||||||
|
|
||||||
primaryButton(
|
primaryButton(
|
||||||
text = DSLSettingsText.from(R.string.GatewaySelectorBottomSheet__credit_or_debit_card),
|
text = DSLSettingsText.from(R.string.GatewaySelectorBottomSheet__credit_or_debit_card),
|
||||||
icon = DSLSettingsIcon.from(R.drawable.credit_card, R.color.signal_colorOnCustom),
|
icon = DSLSettingsIcon.from(R.drawable.credit_card, R.color.signal_colorOnCustom),
|
||||||
@@ -137,6 +141,8 @@ class GatewaySelectorBottomSheet : DSLSettingsBottomSheetFragment() {
|
|||||||
|
|
||||||
private fun DSLConfiguration.renderSEPADebitButton(state: GatewaySelectorState) {
|
private fun DSLConfiguration.renderSEPADebitButton(state: GatewaySelectorState) {
|
||||||
if (state.isSEPADebitAvailable) {
|
if (state.isSEPADebitAvailable) {
|
||||||
|
space(16.dp)
|
||||||
|
|
||||||
tonalButton(
|
tonalButton(
|
||||||
text = DSLSettingsText.from(R.string.GatewaySelectorBottomSheet__bank_transfer),
|
text = DSLSettingsText.from(R.string.GatewaySelectorBottomSheet__bank_transfer),
|
||||||
icon = DSLSettingsIcon.from(R.drawable.bank_transfer),
|
icon = DSLSettingsIcon.from(R.drawable.bank_transfer),
|
||||||
@@ -160,6 +166,8 @@ class GatewaySelectorBottomSheet : DSLSettingsBottomSheetFragment() {
|
|||||||
|
|
||||||
private fun DSLConfiguration.renderIDEALButton(state: GatewaySelectorState) {
|
private fun DSLConfiguration.renderIDEALButton(state: GatewaySelectorState) {
|
||||||
if (state.isIDEALAvailable) {
|
if (state.isIDEALAvailable) {
|
||||||
|
space(16.dp)
|
||||||
|
|
||||||
tonalButton(
|
tonalButton(
|
||||||
text = DSLSettingsText.from(R.string.GatewaySelectorBottomSheet__ideal),
|
text = DSLSettingsText.from(R.string.GatewaySelectorBottomSheet__ideal),
|
||||||
icon = DSLSettingsIcon.from(R.drawable.logo_ideal, NO_TINT),
|
icon = DSLSettingsIcon.from(R.drawable.logo_ideal, NO_TINT),
|
||||||
|
|||||||
Reference in New Issue
Block a user