mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 20:18:36 +00:00
Fix dark theme issues with compose bottom sheets and donation bank name typo.
This commit is contained in:
@@ -113,6 +113,7 @@ private fun DonationPendingBottomSheetContent(
|
||||
text = stringResource(id = R.string.DonationPendingBottomSheet__donation_pending),
|
||||
textAlign = TextAlign.Center,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
modifier = Modifier.padding(bottom = 8.dp)
|
||||
)
|
||||
|
||||
|
||||
@@ -183,6 +183,7 @@ private fun DonationPaymentFailureBottomSheet(
|
||||
text = stringResource(id = R.string.DonationErrorBottomSheet__donation_couldnt_be_processed),
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
textAlign = TextAlign.Center,
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 45.dp)
|
||||
@@ -262,6 +263,7 @@ private fun DonationCompletedSheetContent(
|
||||
text = stringResource(id = R.string.DonationCompletedBottomSheet__donation_complete),
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
textAlign = TextAlign.Center,
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 45.dp)
|
||||
@@ -319,6 +321,7 @@ private fun DonationToggleRow(
|
||||
) {
|
||||
Text(
|
||||
text = text,
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
modifier = Modifier
|
||||
.weight(1f)
|
||||
.align(Alignment.CenterVertically)
|
||||
|
||||
@@ -28,7 +28,7 @@ enum class IdealBank(
|
||||
REVOLUT("revolut"),
|
||||
SNS_BANK("sns_bank"),
|
||||
TRIODOS_BANK("triodos_bank"),
|
||||
VAN_LANCHOT("van_lanchot"),
|
||||
VAN_LANSCHOT("van_lanschot"),
|
||||
YOURSAFE("yoursafe");
|
||||
|
||||
fun getUIValues(): UIValues = bankToUIValues[this]!!
|
||||
@@ -83,8 +83,8 @@ enum class IdealBank(
|
||||
name = R.string.IdealBank__triodos_bank,
|
||||
icon = R.drawable.ideal_triodos_bank
|
||||
),
|
||||
VAN_LANCHOT to UIValues(
|
||||
name = R.string.IdealBank__van_lanchot,
|
||||
VAN_LANSCHOT to UIValues(
|
||||
name = R.string.IdealBank__van_lanschot,
|
||||
icon = R.drawable.ideal_van_lanschot
|
||||
),
|
||||
YOURSAFE to UIValues(
|
||||
|
||||
@@ -147,6 +147,7 @@ private fun TurnOnNotificationsSheetContent(
|
||||
Text(
|
||||
text = stringResource(titleRes),
|
||||
style = MaterialTheme.typography.headlineSmall,
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
modifier = Modifier
|
||||
.align(Alignment.CenterHorizontally)
|
||||
.padding(bottom = 12.dp, top = 10.dp)
|
||||
@@ -155,6 +156,7 @@ private fun TurnOnNotificationsSheetContent(
|
||||
Text(
|
||||
text = stringResource(subtitleRes),
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
modifier = Modifier
|
||||
.align(Alignment.CenterHorizontally)
|
||||
.padding(bottom = 32.dp)
|
||||
@@ -162,6 +164,7 @@ private fun TurnOnNotificationsSheetContent(
|
||||
|
||||
Text(
|
||||
text = stringResource(R.string.TurnOnNotificationsBottomSheet__1_tap_settings_below),
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
modifier = Modifier.padding(bottom = 32.dp)
|
||||
)
|
||||
|
||||
@@ -190,6 +193,7 @@ private fun TurnOnNotificationsSheetContent(
|
||||
Text(
|
||||
text = step2Text,
|
||||
inlineContent = step2InlineContent,
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
modifier = Modifier.padding(bottom = 32.dp)
|
||||
)
|
||||
|
||||
|
||||
@@ -5910,7 +5910,7 @@
|
||||
<!-- iDEAL bank name -->
|
||||
<string name="IdealBank__triodos_bank">Triodos Bank</string>
|
||||
<!-- iDEAL bank name -->
|
||||
<string name="IdealBank__van_lanchot">Van Lanchot Kempen</string>
|
||||
<string name="IdealBank__van_lanschot">Van Lanschot Kempen</string>
|
||||
<!-- iDEAL bank name -->
|
||||
<string name="IdealBank__yoursafe">Yoursafe</string>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user