fix(ui): route QuestionPackLibrary card art through BrandIllustration for in-app-dark theme (C-DARKART-002)

This commit is contained in:
null 2026-06-28 12:55:29 -05:00
parent 736885c103
commit b48163540c
1 changed files with 8 additions and 4 deletions

View File

@ -46,6 +46,7 @@ import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Color
import androidx.compose.ui.layout.ContentScale import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.painterResource
import app.closer.ui.components.BrandIllustration
import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.tooling.preview.Preview
@ -219,11 +220,14 @@ private fun QuestionPackCard(
.height(94.dp) .height(94.dp)
.clip(RoundedCornerShape(topStart = 22.dp, topEnd = 22.dp)) .clip(RoundedCornerShape(topStart = 22.dp, topEnd = 22.dp))
) { ) {
Image( // C-DARKART-002: route through BrandIllustration so the -night variant follows the IN-APP
painter = painterResource(packArtworkRes(item.category.id)), // theme (not system uiMode). tile=false keeps the full-bleed banner crop (no edge feather).
BrandIllustration(
res = packArtworkRes(item.category.id),
contentDescription = null, contentDescription = null,
contentScale = ContentScale.Crop, modifier = Modifier.fillMaxSize(),
modifier = Modifier.fillMaxSize() tile = false,
contentScale = ContentScale.Crop
) )
Box( Box(
modifier = Modifier modifier = Modifier