Merge pull request #6 from essentialkaos/develop

Version 1.2.1
main
ᴀɴᴛᴏɴ ɴᴏᴠᴏᴊɪʟᴏᴠ 3 years ago committed by GitHub
commit 3cdee1b83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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