mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-08-07 20:00:06 +00:00
fix(mdblist): reorder ratings — MAL before Rotten Tomatoes pair, fix source_mal import
This commit is contained in:
parent
6366142e0b
commit
720c6d8b6e
2 changed files with 17 additions and 16 deletions
|
|
@ -359,22 +359,6 @@ private val ratingVisuals = listOf(
|
|||
valueColor = Color(0xFF01B4E4),
|
||||
format = ::formatWhole,
|
||||
),
|
||||
RatingVisuals(
|
||||
source = PROVIDER_TOMATOES,
|
||||
displayName = "Rotten Tomatoes",
|
||||
logo = Res.drawable.rating_rotten_tomatoes,
|
||||
logoWidth = 16.dp,
|
||||
valueColor = Color(0xFFFA320A),
|
||||
format = ::formatPercent,
|
||||
),
|
||||
RatingVisuals(
|
||||
source = PROVIDER_METACRITIC,
|
||||
displayName = "Metacritic",
|
||||
logo = Res.drawable.rating_metacritic,
|
||||
logoWidth = 16.dp,
|
||||
valueColor = Color(0xFFFFCC33),
|
||||
format = ::formatWhole,
|
||||
),
|
||||
RatingVisuals(
|
||||
source = PROVIDER_TRAKT,
|
||||
displayName = "Trakt",
|
||||
|
|
@ -399,6 +383,14 @@ private val ratingVisuals = listOf(
|
|||
valueColor = Color(0xFF2E51A2),
|
||||
format = ::formatOneDecimal,
|
||||
),
|
||||
RatingVisuals(
|
||||
source = PROVIDER_TOMATOES,
|
||||
displayName = "Rotten Tomatoes",
|
||||
logo = Res.drawable.rating_rotten_tomatoes,
|
||||
logoWidth = 16.dp,
|
||||
valueColor = Color(0xFFFA320A),
|
||||
format = ::formatPercent,
|
||||
),
|
||||
RatingVisuals(
|
||||
source = PROVIDER_AUDIENCE,
|
||||
displayName = runBlocking { getString(Res.string.rating_audience_score) },
|
||||
|
|
@ -407,6 +399,14 @@ private val ratingVisuals = listOf(
|
|||
valueColor = Color(0xFFFA320A),
|
||||
format = ::formatPercent,
|
||||
),
|
||||
RatingVisuals(
|
||||
source = PROVIDER_METACRITIC,
|
||||
displayName = "Metacritic",
|
||||
logo = Res.drawable.rating_metacritic,
|
||||
logoWidth = 16.dp,
|
||||
valueColor = Color(0xFFFFCC33),
|
||||
format = ::formatWhole,
|
||||
),
|
||||
)
|
||||
|
||||
private fun formatOneDecimal(value: Double): String {
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ import nuvio.composeapp.generated.resources.settings_mdb_section_title
|
|||
import nuvio.composeapp.generated.resources.source_audience_score
|
||||
import nuvio.composeapp.generated.resources.source_imdb
|
||||
import nuvio.composeapp.generated.resources.source_letterboxd
|
||||
import nuvio.composeapp.generated.resources.source_mal
|
||||
import nuvio.composeapp.generated.resources.source_metacritic
|
||||
import nuvio.composeapp.generated.resources.source_rotten_tomatoes
|
||||
import nuvio.composeapp.generated.resources.source_tmdb
|
||||
|
|
|
|||
Loading…
Reference in a new issue