未验证 提交 10ae0707 编写于 作者: B Blankj 提交者: GitHub

Merge pull request #1385 from qiushui95/master

static ColorUtils.isLightColor
......@@ -211,7 +211,7 @@ public final class ColorUtils {
* @param color The color.
* @return {@code true}: yes<br>{@code false}: no
*/
public boolean isLightColor(@ColorInt int color) {
public static boolean isLightColor(@ColorInt int color) {
return 0.299 * Color.red(color) + 0.587 * Color.green(color) + 0.114 * Color.blue(color) >= 127.5;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册