fix: use hello.png as Ollama logo, fillMaxSize for crisp display}

This commit is contained in:
WaterRain 2026-07-06 22:29:43 +00:00
parent 65e4dc5a2f
commit f7662d065a
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
@ -106,13 +107,13 @@ fun ServiceIcon(
modifier = modifier
.size(size.dp)
.clip(RoundedCornerShape(8.dp))
.background(if (isSystemInDarkTheme()) Color(0xFF1A1A1A) else Color.White),
.background(if (isSystemInDarkTheme()) Color(0xFFF5F5F5) else Color.White),
contentAlignment = Alignment.Center
) {
Image(
painter = painterResource(id = R.drawable.ic_ollama_logo),
contentDescription = "Ollama Pro",
modifier = Modifier.size((size * 0.85).dp)
modifier = Modifier.fillMaxSize()
)
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 890 B

After

Width:  |  Height:  |  Size: 10 KiB