Skip to content

Commit

Permalink
boost error hint color
Browse files Browse the repository at this point in the history
  • Loading branch information
toliuweijing authored and Profpatsch committed Nov 20, 2024
1 parent ec45f32 commit e05eef0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/src/main/java/org/schabi/newpipe/ui/theme/ColorExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ import androidx.compose.ui.graphics.Color

/**
* Extended color for error hint.
* See [specification](https://m1.material.io/patterns/errors.html#errors-user-input-errors)
*/
val md_theme_light_error_hint = Color(0x61000000)

val md_theme_dark_error_hint = Color(0x80FFFFFF)
val md_theme_light_error_hint = Color(0xCC000000)
val md_theme_dark_error_hint = Color(0xCCFFFFFF)

val ColorScheme.errorHint: Color
@Composable get() = if (isSystemInDarkTheme()) {
Color(0x80FFFFFF)
md_theme_dark_error_hint
} else {
Color(0x61000000)
md_theme_light_error_hint
}

0 comments on commit e05eef0

Please sign in to comment.