Updates ring width and palette to match the designs (#3671)

This commit is contained in:
Alexander 2023-06-26 14:17:59 +02:00 committed by GitHub
parent 783a6b9153
commit 83238283b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -20,8 +20,8 @@ const (
)
var (
lightThemeIdenticonRingColors = []string{"#000000", "#726F6F", "#C4C4C4", "#E7E7E7", "#FFFFFF", "#00FF00", "#009800", "#B8FFBB", "#FFC413", "#9F5947", "#FFFF00", "#A8AC00", "#FFFFB0", "#FF5733", "#FF0000", "#9A0000", "#FF9D9D", "#FF0099", "#C80078", "#FF00FF", "#900090", "#FFB0FF", "#9E00FF", "#0000FF", "#000086", "#9B81FF", "#3FAEF9", "#9A6600", "#00FFFF", "#008694", "#C2FFFF", "#00F0B6"}
darkThemeIdenticonRingColors = []string{"#000000", "#726F6F", "#C4C4C4", "#E7E7E7", "#FFFFFF", "#00FF00", "#009800", "#B8FFBB", "#FFC413", "#9F5947", "#FFFF00", "#A8AC00", "#FFFFB0", "#FF5733", "#FF0000", "#9A0000", "#FF9D9D", "#FF0099", "#C80078", "#FF00FF", "#900090", "#FFB0FF", "#9E00FF", "#0000FF", "#000086", "#9B81FF", "#3FAEF9", "#9A6600", "#00FFFF", "#008694", "#C2FFFF", "#00F0B6"}
lightThemeIdenticonRingColors = []string{"#000000", "#00FF00", "#FFFF00", "#FF0000", "#FF00FF", "#0000FF", "#00FFFF", "#726F6F", "#009800", "#A8AC00", "#9A0000", "#900090", "#000086", "#008694", "#C4C4C4", "#B8FFBB", "#FFFFB0", "#FF9D9D", "#FFB0FF", "#9B81FF", "#C2FFFF", "#E7E7E7", "#FFC413", "#FF5733", "#FF0099", "#9E00FF", "#3FAEF9", "#00F0B6", "#FFFFFF", "#9F5947", "#C80078", "#9A6600"}
darkThemeIdenticonRingColors = []string{"#000000", "#00FF00", "#FFFF00", "#FF0000", "#FF00FF", "#0000FF", "#00FFFF", "#726F6F", "#009800", "#A8AC00", "#9A0000", "#900090", "#000086", "#008694", "#C4C4C4", "#B8FFBB", "#FFFFB0", "#FF9D9D", "#FFB0FF", "#9B81FF", "#C2FFFF", "#E7E7E7", "#FFC413", "#FF5733", "#FF0099", "#9E00FF", "#3FAEF9", "#00F0B6", "#FFFFFF", "#9F5947", "#C80078", "#9A6600"}
)
type DrawRingParam struct {
@ -50,7 +50,7 @@ func DrawRing(param *DrawRingParam) ([]byte, error) {
}
dc.DrawImage(img, 0, 0)
ringPxSize := math.Max(1.5, float64(param.Width/24.0))
ringPxSize := math.Max(2.0, float64(param.Width/16.0))
radius := (float64(param.Height) - ringPxSize) / 2
arcPos := 0.0