From b48163540cd2f63b1d2c42548852d581160353d8 Mon Sep 17 00:00:00 2001 From: null Date: Sun, 28 Jun 2026 12:55:29 -0500 Subject: [PATCH] fix(ui): route QuestionPackLibrary card art through BrandIllustration for in-app-dark theme (C-DARKART-002) --- .../closer/ui/questions/QuestionPackLibraryScreen.kt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/app/closer/ui/questions/QuestionPackLibraryScreen.kt b/app/src/main/java/app/closer/ui/questions/QuestionPackLibraryScreen.kt index 569baef9..4ce2ada3 100644 --- a/app/src/main/java/app/closer/ui/questions/QuestionPackLibraryScreen.kt +++ b/app/src/main/java/app/closer/ui/questions/QuestionPackLibraryScreen.kt @@ -46,6 +46,7 @@ import androidx.compose.ui.graphics.Brush import androidx.compose.ui.graphics.Color import androidx.compose.ui.layout.ContentScale import androidx.compose.ui.res.painterResource +import app.closer.ui.components.BrandIllustration import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.tooling.preview.Preview @@ -219,11 +220,14 @@ private fun QuestionPackCard( .height(94.dp) .clip(RoundedCornerShape(topStart = 22.dp, topEnd = 22.dp)) ) { - Image( - painter = painterResource(packArtworkRes(item.category.id)), + // C-DARKART-002: route through BrandIllustration so the -night variant follows the IN-APP + // theme (not system uiMode). tile=false keeps the full-bleed banner crop (no edge feather). + BrandIllustration( + res = packArtworkRes(item.category.id), contentDescription = null, - contentScale = ContentScale.Crop, - modifier = Modifier.fillMaxSize() + modifier = Modifier.fillMaxSize(), + tile = false, + contentScale = ContentScale.Crop ) Box( modifier = Modifier