Skip to content

Commit 1f7d6b1

Browse files
Merge pull request #2123 from session-foundation/release/1.33.4
Release/1.33.4 in dev
2 parents 1eaea74 + 9059c6c commit 1f7d6b1

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ configurations.configureEach {
2626
exclude(module = "commons-logging")
2727
}
2828

29-
val canonicalVersionCode = 449
30-
val canonicalVersionName = "1.33.3"
29+
val canonicalVersionCode = 451
30+
val canonicalVersionName = "1.33.4"
3131

3232
val postFixSize = 10
3333
val abiPostFix = mapOf(

app/src/main/java/org/thoughtcrime/securesms/home/HomeDialogs.kt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import androidx.compose.ui.res.painterResource
3333
import androidx.compose.ui.res.stringResource
3434
import androidx.compose.ui.text.style.TextAlign
3535
import androidx.compose.ui.tooling.preview.Preview
36+
import androidx.compose.ui.tooling.preview.PreviewParameter
3637
import androidx.compose.ui.unit.dp
3738
import com.squareup.phrase.Phrase
3839
import kotlinx.coroutines.delay
@@ -75,7 +76,9 @@ import org.thoughtcrime.securesms.ui.theme.LocalColors
7576
import org.thoughtcrime.securesms.ui.theme.LocalDimensions
7677
import org.thoughtcrime.securesms.ui.theme.LocalType
7778
import org.thoughtcrime.securesms.ui.theme.PreviewTheme
79+
import org.thoughtcrime.securesms.ui.theme.SessionColorsParameterProvider
7880
import org.thoughtcrime.securesms.ui.theme.SessionMaterialTheme
81+
import org.thoughtcrime.securesms.ui.theme.ThemeColors
7982
import org.thoughtcrime.securesms.ui.theme.blackAlpha40
8083
import 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
) {

app/src/main/java/org/thoughtcrime/securesms/ui/ProComponents.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,10 +474,11 @@ fun SimpleSessionProCTA(
474474

475475
@Composable
476476
fun CTAImage(
477+
modifier: Modifier = Modifier,
477478
@DrawableRes heroImage: Int,
478479
){
479480
AsyncImage(
480-
modifier = Modifier
481+
modifier = modifier
481482
.fillMaxWidth()
482483
.background(LocalColors.current.accent),
483484
contentScale = ContentScale.FillWidth,

0 commit comments

Comments
 (0)