优化
This commit is contained in:
1 parent
d1dea9e47f
commit
9774803b8e
1 file changed
+1
-1
@@ -10,7 +10,7 @@ import kotlin.math.*
|
||||
object ColorUtils {
|
||||
|
||||
fun isColorLight(@ColorInt color: Int): Boolean {
|
||||
return ColorUtils.calculateLuminance(color) >= 0.65
|
||||
return ColorUtils.calculateLuminance(color) >= 0.5
|
||||
}
|
||||
|
||||
fun intToString(intColor: Int): String {
|
||||
|
||||
Reference in new issue
Block a user