This commit is contained in:
kunfei
2022-05-16 11:38:14 +08:00
parent 42c2d453f0
commit 944add674e
@@ -10,7 +10,7 @@ import kotlin.math.*
object ColorUtils { object ColorUtils {
fun isColorLight(@ColorInt color: Int): Boolean { fun isColorLight(@ColorInt color: Int): Boolean {
return ColorUtils.calculateLuminance(color) >= 0.65 return ColorUtils.calculateLuminance(color) >= 0.5
} }
fun intToString(intColor: Int): String { fun intToString(intColor: Int): String {