Skip to content

Commit

Permalink
style: ダークモード時の見た目を調整 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
kokoichi206 committed Dec 6, 2022
1 parent 8caa033 commit 87567b9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.filled.Close
import androidx.compose.material.ripple.rememberRipple
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
Expand All @@ -36,7 +37,6 @@ fun RecentSearched(
onItemClick: (String) -> Unit = {},
onItemReflectClick: (String) -> Unit = {},
) {
val iconColor = Color.Gray.copy(alpha = 0.4f)

LazyColumn(
modifier = Modifier
Expand All @@ -63,7 +63,7 @@ fun RecentSearched(
modifier = Modifier
.size(16.dp)
.clip(CircleShape)
.background(iconColor)
.background(Color.Gray.copy(alpha = 0.4f))
.clickable {
onCloseClick()
}
Expand All @@ -90,15 +90,15 @@ fun RecentSearched(
text = str,
fontSize = 16.sp,
style = TextStyle(
color = Color.Black,
color = MaterialTheme.colorScheme.onBackground,
fontWeight = FontWeight.Bold,
),
)
Box(modifier = Modifier.weight(1f))
Icon(
imageVector = Icons.Default.ArrowBack,
modifier = Modifier
.size(16.dp)
.size(20.dp)
.rotate(45f)
.clickable(
onClick = {
Expand All @@ -109,7 +109,7 @@ fun RecentSearched(
)
.testTag("${TestTags.REFLECT_SEARCH_BAR_PREFIX}_$str"),
contentDescription = "close recent",
tint = iconColor,
tint = MaterialTheme.colorScheme.onBackground,
)
}
}
Expand Down

0 comments on commit 87567b9

Please sign in to comment.