fix: Change SearchField bg color so it is can be seen easier

This commit is contained in:
2026-02-19 10:57:27 +01:00
parent 7d564c2470
commit 90a66ef7e3
2 changed files with 5 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ fun HomeTopBar(
.padding(horizontal = 16.dp, vertical = 16.dp) .padding(horizontal = 16.dp, vertical = 16.dp)
.fillMaxWidth(), .fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.spacedBy(12.dp, Alignment.CenterHorizontally), horizontalArrangement = Arrangement.spacedBy(16.dp, Alignment.CenterHorizontally),
) { ) {
PurefinIconButton( PurefinIconButton(
icon = Icons.Outlined.Menu, icon = Icons.Outlined.Menu,
@@ -52,9 +52,9 @@ fun HomeTopBar(
value = "", value = "",
onValueChange = {}, onValueChange = {},
placeholder = "Search", placeholder = "Search",
backgroundColor = scheme.surface, backgroundColor = scheme.secondaryContainer,
textColor = scheme.onSurface, textColor = scheme.onSecondaryContainer,
cursorColor = scheme.secondary, cursorColor = scheme.onSecondaryContainer,
modifier = Modifier.weight(1.0f, true), modifier = Modifier.weight(1.0f, true),
) )
PurefinIconButton( PurefinIconButton(

View File

@@ -32,7 +32,7 @@ fun SearchField(
onValueChange = onValueChange, onValueChange = onValueChange,
modifier = modifier modifier = modifier
.fillMaxWidth() .fillMaxWidth()
.clip(RoundedCornerShape(24.dp)), .clip(RoundedCornerShape(32.dp)),
placeholder = { Text(placeholder, color = scheme.onSurfaceVariant) }, placeholder = { Text(placeholder, color = scheme.onSurfaceVariant) },
leadingIcon = leadingIcon =
{ Icon(imageVector = Icons.Outlined.Search, contentDescription = null, tint = scheme.onSurfaceVariant) }, { Icon(imageVector = Icons.Outlined.Search, contentDescription = null, tint = scheme.onSurfaceVariant) },