Increase minimum luminance level for dark text color from 50% to 65%

main
Anton Novojilov 3 years ago
parent 37ec8e26c0
commit b9c63e3e0b

@ -22,7 +22,7 @@ import (
// ////////////////////////////////////////////////////////////////////////////////// //
// VERSION is current package version
const VERSION = "1.2.0"
const VERSION = "1.2.1"
const (
COLOR_BLUE = "#007ec6"
@ -238,7 +238,7 @@ func formatFloat(v float64) string {
func getMessageColors(badgeColor string) (string, string) {
c := parseColor(badgeColor)
if c == 0 || calcLuminance(c) < 0.5 {
if c == 0 || calcLuminance(c) < 0.65 {
return "#fff", "#010101"
}

Loading…
Cancel
Save