@@ -33,6 +33,7 @@ import androidx.compose.ui.res.painterResource
3333import androidx.compose.ui.res.stringResource
3434import androidx.compose.ui.text.style.TextAlign
3535import androidx.compose.ui.tooling.preview.Preview
36+ import androidx.compose.ui.tooling.preview.PreviewParameter
3637import androidx.compose.ui.unit.dp
3738import com.squareup.phrase.Phrase
3839import kotlinx.coroutines.delay
@@ -75,7 +76,9 @@ import org.thoughtcrime.securesms.ui.theme.LocalColors
7576import org.thoughtcrime.securesms.ui.theme.LocalDimensions
7677import org.thoughtcrime.securesms.ui.theme.LocalType
7778import org.thoughtcrime.securesms.ui.theme.PreviewTheme
79+ import org.thoughtcrime.securesms.ui.theme.SessionColorsParameterProvider
7880import org.thoughtcrime.securesms.ui.theme.SessionMaterialTheme
81+ import org.thoughtcrime.securesms.ui.theme.ThemeColors
7982import org.thoughtcrime.securesms.ui.theme.blackAlpha40
8083import org.thoughtcrime.securesms.util.DonationManager.Companion.URL_DONATE
8184
@@ -295,13 +298,17 @@ fun DonationDialog(
295298 .verticalScroll(rememberScrollState())
296299 ) {
297300 // hero image
298- BottomFadingEdgeBox (
301+ /* BottomFadingEdgeBox(
299302 modifier = Modifier.heightIn(max = heroMaxHeight),
300303 fadingEdgeHeight = 70.dp,
301304 fadingColor = LocalColors.current.backgroundSecondary,
302305 content = { _ ->
303306 CTAImage(heroImage = R.drawable.cta_hero_donation)
304307 },
308+ )*/
309+ CTAImage (
310+ modifier = Modifier .background(LocalColors .current.backgroundSecondary),
311+ heroImage = R .drawable.cta_hero_donation
305312 )
306313
307314 // content
@@ -384,8 +391,10 @@ fun DonationDialog(
384391
385392@Preview
386393@Composable
387- fun PreviewDonationDialog () {
388- PreviewTheme {
394+ fun PreviewDonationDialog (
395+ @PreviewParameter(SessionColorsParameterProvider ::class ) colors : ThemeColors
396+ ) {
397+ PreviewTheme (colors) {
389398 Column (
390399 modifier = Modifier .fillMaxSize()
391400 ) {
0 commit comments