@@ -46,8 +46,7 @@ import com.example.doubanmovie.data.MovieComment
4646import com.example.doubanmovie.data.MovieItem
4747import com.example.doubanmovie.ui.components.RatingBar
4848import com.example.doubanmovie.ui.theme.DoubanMovieTheme
49- import com.example.doubanmovie.ui.theme.Grey100
50- import com.example.doubanmovie.ui.theme.Grey200
49+ import com.example.doubanmovie.ui.theme.LightGrey
5150import com.google.accompanist.flowlayout.FlowRow
5251import com.google.accompanist.pager.ExperimentalPagerApi
5352import com.google.accompanist.pager.HorizontalPager
@@ -394,10 +393,9 @@ fun MovieRank() {
394393 }
395394 item {
396395 Surface (
397- color = Color .LightGray .copy(alpha = 0.2f ),
398- contentColor = Color .Gray ,
399396 modifier = Modifier .fillMaxHeight(),
400- shape = RoundedCornerShape (10 .dp),
397+ color = LightGrey ,
398+ shape = MaterialTheme .shapes.medium,
401399 ) {
402400 Column (
403401 modifier = Modifier .padding(16 .dp),
@@ -479,7 +477,8 @@ fun SearchMovieBody(onFilterItemClick: () -> Unit = {}) {
479477 }
480478 items(tagList) { item ->
481479 Surface (
482- color = Grey100 ,
480+ modifier = Modifier .fillMaxHeight(),
481+ color = Color .LightGray .copy(0.2f ),
483482 shape = MaterialTheme .shapes.small,
484483 ) {
485484 Text (
@@ -573,10 +572,10 @@ fun FilterItem(
573572 contentPadding = PaddingValues (12 .dp)
574573 ) {
575574 items(data.items) { item ->
576- Card (
575+ Surface (
577576 modifier = Modifier .padding(4 .dp),
578- backgroundColor = Color . LightGray .copy(alpha = 0.2f ) ,
579- elevation = 0 .dp,
577+ color = LightGrey ,
578+ shape = MaterialTheme .shapes.small
580579 ) {
581580 Text (
582581 item,
@@ -739,7 +738,7 @@ fun MovieFavorite(favorite: Boolean = false) {
739738fun MovieTags (tags : List <String >) {
740739 FlowRow (mainAxisSpacing = 8 .dp, crossAxisSpacing = 8 .dp) {
741740 tags.forEach { item ->
742- Surface (color = Grey200 , shape = RoundedCornerShape ( 4 .dp) ) {
741+ Surface (color = LightGrey , shape = MaterialTheme .shapes.small ) {
743742 Row (
744743 modifier = Modifier .padding(4 .dp),
745744 verticalAlignment = Alignment .CenterVertically
@@ -1018,11 +1017,6 @@ private val movieList = listOf(
10181017 " https://img2.doubanio.com/view/photo/m_ratio_poster/public/p2879301401.webp" ,
10191018 rating = 7.6f
10201019 ),
1021- MovieItem (
1022- " 妈妈!" ,
1023- " https://img2.doubanio.com/view/photo/m_ratio_poster/public/p2879572001.webp" ,
1024- rating = 7.4f
1025- ),
10261020 MovieItem (
10271021 " 平凡英雄" ,
10281022 " https://img3.doubanio.com/view/photo/m_ratio_poster/public/p2880994870.webp" ,
0 commit comments