Searched refs:luminance (Results 1 – 9 of 9) sorted by relevance
23 import androidx.compose.ui.graphics.luminance66 if (isAccentColorBright(accentColor.luminance())) in <lambda>()88 if (!isColorFeasibleForBothBackgrounds(Color(inputColor).luminance())) { in checkColorValidityAndGetColor()99 private fun isColorFeasibleForBothBackgrounds(luminance: Float): Boolean { in isColorFeasibleForBothBackgrounds()100 return luminance >= 0.05 && luminance < 0.9 in isColorFeasibleForBothBackgrounds()
44 mAccentColorLuminance = Color.luminance(color); in PickerAccentColorParameters()98 float luminance = Color.luminance(color); in isColorFeasibleForBothBackgrounds() local99 return luminance >= 0.05 && luminance < 0.9; in isColorFeasibleForBothBackgrounds()
92 val luminance = Color.luminance(seedColor) in <lambda>() constant94 if (luminance <= CARD_COLOR_CHANGE_LUMINANCE_THRESHOLD_DARK_THEME) { in <lambda>()100 if (luminance <= CARD_COLOR_CHANGE_LUMINANCE_THRESHOLD_LIGHT_THEME) { in <lambda>()
159 return Color.luminance(backgroundColor) > LIGHT_COLOR_LUMINANCE_THRESHOLD; in isColorLight()285 Color.luminance(foregroundColor) > Color.luminance(backgroundColor); in getContrastedForegroundColor()
1262 float lum1 = color1.luminance(); in checkContrastRatio()1263 float lum2 = color2.luminance(); in checkContrastRatio()