fix: use hello.png as Ollama logo, fillMaxSize for crisp display}
This commit is contained in:
parent
65e4dc5a2f
commit
f7662d065a
@ -4,6 +4,7 @@ import androidx.compose.foundation.Image
|
|||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
import androidx.compose.foundation.isSystemInDarkTheme
|
import androidx.compose.foundation.isSystemInDarkTheme
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
|
import androidx.compose.foundation.layout.fillMaxSize
|
||||||
import androidx.compose.foundation.layout.size
|
import androidx.compose.foundation.layout.size
|
||||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
@ -106,13 +107,13 @@ fun ServiceIcon(
|
|||||||
modifier = modifier
|
modifier = modifier
|
||||||
.size(size.dp)
|
.size(size.dp)
|
||||||
.clip(RoundedCornerShape(8.dp))
|
.clip(RoundedCornerShape(8.dp))
|
||||||
.background(if (isSystemInDarkTheme()) Color(0xFF1A1A1A) else Color.White),
|
.background(if (isSystemInDarkTheme()) Color(0xFFF5F5F5) else Color.White),
|
||||||
contentAlignment = Alignment.Center
|
contentAlignment = Alignment.Center
|
||||||
) {
|
) {
|
||||||
Image(
|
Image(
|
||||||
painter = painterResource(id = R.drawable.ic_ollama_logo),
|
painter = painterResource(id = R.drawable.ic_ollama_logo),
|
||||||
contentDescription = "Ollama Pro",
|
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 |
Loading…
Reference in New Issue
Block a user