Fix title text color in light mode on mass migration list (mihonapp/mihon#2370)
(cherry picked from commit a93f71b82be4489a7a2aefd8fa08bb114cae8db5)
This commit is contained in:
parent
935f447fbb
commit
c6a0eaf67c
1 changed files with 3 additions and 5 deletions
|
|
@ -45,7 +45,6 @@ import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.draw.clip
|
import androidx.compose.ui.draw.clip
|
||||||
import androidx.compose.ui.graphics.Brush
|
import androidx.compose.ui.graphics.Brush
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
import androidx.compose.ui.graphics.Shadow
|
|
||||||
import androidx.compose.ui.layout.ContentScale
|
import androidx.compose.ui.layout.ContentScale
|
||||||
import androidx.compose.ui.text.style.TextOverflow
|
import androidx.compose.ui.text.style.TextOverflow
|
||||||
import androidx.compose.ui.unit.DpOffset
|
import androidx.compose.ui.unit.DpOffset
|
||||||
|
|
@ -215,10 +214,10 @@ fun MigrationListItem(
|
||||||
.background(
|
.background(
|
||||||
Brush.verticalGradient(
|
Brush.verticalGradient(
|
||||||
0f to Color.Transparent,
|
0f to Color.Transparent,
|
||||||
1f to Color(0xAA000000),
|
1f to MaterialTheme.colorScheme.background,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.fillMaxHeight(0.33f)
|
.fillMaxHeight(0.4f)
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.align(Alignment.BottomCenter),
|
.align(Alignment.BottomCenter),
|
||||||
)
|
)
|
||||||
|
|
@ -229,8 +228,7 @@ fun MigrationListItem(
|
||||||
text = manga.title,
|
text = manga.title,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
maxLines = 2,
|
maxLines = 2,
|
||||||
style = MaterialTheme.typography.labelMedium
|
style = MaterialTheme.typography.labelMedium,
|
||||||
.merge(shadow = Shadow(color = Color.Black, blurRadius = 4f)),
|
|
||||||
)
|
)
|
||||||
BadgeGroup(modifier = Modifier.padding(4.dp)) {
|
BadgeGroup(modifier = Modifier.padding(4.dp)) {
|
||||||
Badge(text = "$chapterCount")
|
Badge(text = "$chapterCount")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue