boost error hint color

This commit is contained in:
toliuweijing 2024-08-19 16:11:31 +08:00
parent e0ef93f1fe
commit 90499b120a
1 changed files with 4 additions and 6 deletions

View File

@ -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
}