@@ -146,9 +146,14 @@ fun PinLoginPage(
146146 PinLogoSection (
147147 showLogo = pinUiState.showLogo,
148148 title = stringResource(id = R .string.set_pin),
149+ applicationConfiguration = applicationConfiguration,
149150 )
150151 } else {
151- PinLogoSection (showLogo = pinUiState.showLogo, title = pinUiState.appName)
152+ PinLogoSection (
153+ showLogo = pinUiState.showLogo,
154+ title = pinUiState.appName,
155+ applicationConfiguration = applicationConfiguration,
156+ )
152157 }
153158 Text (
154159 text = pinUiState.message,
@@ -231,7 +236,12 @@ fun PinLoginPage(
231236}
232237
233238@Composable
234- private fun PinLogoSection (modifier : Modifier = Modifier , showLogo : Boolean , title : String ) {
239+ private fun PinLogoSection (
240+ modifier : Modifier = Modifier ,
241+ showLogo : Boolean ,
242+ title : String ,
243+ applicationConfiguration : ApplicationConfiguration ,
244+ ) {
235245 Column (horizontalAlignment = Alignment .CenterHorizontally , modifier = modifier.fillMaxWidth()) {
236246 if (showLogo) {
237247 Image (
@@ -240,8 +250,8 @@ private fun PinLogoSection(modifier: Modifier = Modifier, showLogo: Boolean, tit
240250 modifier =
241251 modifier
242252 .align(Alignment .CenterHorizontally )
243- .requiredHeight(120 .dp)
244- .requiredWidth(140 .dp)
253+ .requiredHeight(applicationConfiguration.loginConfig.logoHeight .dp)
254+ .requiredWidth(applicationConfiguration.loginConfig.logoWidth .dp)
245255 .testTag(PIN_LOGO_IMAGE ),
246256 )
247257 }
0 commit comments