Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed May 16, 2022
1 parent 42c2d45 commit 944add6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/io/legado/app/utils/ColorUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 944add6

Please sign in to comment.