Made item icons a bit smaller in order to be similarly sized to character icons

This commit is contained in:
Nacho 2025-01-21 13:34:49 +01:00
parent 25500e9cb4
commit 5e92895656

View File

@ -41,13 +41,13 @@ fun ItemElement(
.aspectRatio(1f) .aspectRatio(1f)
) { ) {
Box(modifier = Modifier.fillMaxSize()) { Box(modifier = Modifier.fillMaxSize()) {
// Background image (full size)
Icon( Icon(
painter = painterResource(id = itemIcon), painter = painterResource(id = itemIcon),
contentDescription = null, contentDescription = null,
modifier = Modifier modifier = Modifier
.size(96.dp) .size(96.dp)
.align(Alignment.Center) .align(Alignment.Center)
.padding(16.dp)
) )
Icon( Icon(
painter = painterResource(id = lengthIcon), painter = painterResource(id = lengthIcon),
@ -55,8 +55,8 @@ fun ItemElement(
tint = MaterialTheme.colorScheme.surfaceTint, tint = MaterialTheme.colorScheme.surfaceTint,
modifier = Modifier modifier = Modifier
.size(48.dp) // Set the size of the overlay image .size(48.dp) // Set the size of the overlay image
.padding(4.dp)
.align(Alignment.TopStart) // Align to the top end (top-right corner) .align(Alignment.TopStart) // Align to the top end (top-right corner)
.padding(8.dp)
) )
} }
} }