11package org.wordpress.android.ui.accounts.login.components
22
33import android.content.res.Configuration
4- import androidx.compose.foundation.Image
54import androidx.compose.foundation.background
65import androidx.compose.foundation.layout.Box
76import androidx.compose.foundation.layout.fillMaxSize
87import androidx.compose.foundation.layout.padding
98import androidx.compose.runtime.Composable
109import androidx.compose.ui.Modifier
10+ import androidx.compose.ui.draw.paint
1111import androidx.compose.ui.layout.ContentScale
1212import androidx.compose.ui.res.colorResource
1313import androidx.compose.ui.res.painterResource
14- import androidx.compose.ui.res.stringResource
1514import androidx.compose.ui.tooling.preview.Devices
1615import androidx.compose.ui.tooling.preview.Preview
1716import androidx.compose.ui.unit.dp
@@ -23,13 +22,15 @@ fun LoopingTextWithBackground(
2322 modifier : Modifier = Modifier ,
2423 textModifier : Modifier = Modifier ,
2524) {
26- Box (modifier.background(colorResource(R .color.bg_jetpack_login_splash))) {
27- Image (
28- painter = painterResource(R .drawable.bg_jetpack_login_splash),
29- contentDescription = stringResource(R .string.login_prologue_revamped_content_description_bg),
30- contentScale = ContentScale .FillBounds ,
31- modifier = Modifier .matchParentSize(),
32- )
25+ Box (
26+ modifier
27+ .background(colorResource(R .color.bg_jetpack_login_splash))
28+ .paint(
29+ painter = painterResource(R .drawable.bg_jetpack_login_splash),
30+ sizeToIntrinsics = true ,
31+ contentScale = ContentScale .FillBounds ,
32+ )
33+ ) {
3334 LoopingText (
3435 modifier = Modifier
3536 .fillMaxSize()
0 commit comments