mirror of
https://github.com/jellyfin/jellyfin-androidtv.git
synced 2024-11-30 09:30:54 +00:00
Improve InfoRow colors/font readability
(cherry picked from commit d661583a86
)
This commit is contained in:
parent
30e34568c1
commit
fd663aff39
@ -7,7 +7,7 @@ import androidx.compose.ui.graphics.Color
|
||||
*/
|
||||
object InfoRowColors {
|
||||
val Transparent = Color.Transparent to Color.White
|
||||
val Default = Color(0x80FFFFFF) to Color.Black
|
||||
val Green = Color(0x8034D97C) to Color.Black
|
||||
val Red = Color(0x80F2364D) to Color.Black
|
||||
val Default = Color(0xB3FFFFFF) to Color.Black
|
||||
val Green = Color(0xB3089562) to Color.White
|
||||
val Red = Color(0xB3F2364D) to Color.White
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.graphics.painter.Painter
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import androidx.tv.material3.ProvideTextStyle
|
||||
@ -46,6 +47,7 @@ fun InfoRowItem(
|
||||
value = TextStyle(
|
||||
color = foregroundColor,
|
||||
fontSize = if (backgroundColor.alpha > 0f) 12.sp else 16.sp,
|
||||
fontWeight = if (backgroundColor.alpha > 0f) FontWeight.W600 else FontWeight.W500,
|
||||
)
|
||||
) {
|
||||
Row(
|
||||
|
Loading…
Reference in New Issue
Block a user