Skip to content

Commit

Permalink
Register -> register
Browse files Browse the repository at this point in the history
  • Loading branch information
koki-develop committed May 2, 2023
1 parent 42623c6 commit bafee29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/theme/theme.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ package theme
import "github.com/koki-develop/gh-grass/internal/github"

var (
_ = Register("dark", "#161B22", "#0E4429", "#006D32", "#26A641", "#39D353")
_ = Register("light", "#EBEDF0", "#9BE9A8", "#40C463", "#30A14E", "#216E39")
_ = register("dark", "#161B22", "#0E4429", "#006D32", "#26A641", "#39D353")
_ = register("light", "#EBEDF0", "#9BE9A8", "#40C463", "#30A14E", "#216E39")
)

type Theme map[github.ContributionLevel]string

var registry = map[string]Theme{}

func Register(name, none, first, second, third, fourth string) Theme {
func register(name, none, first, second, third, fourth string) Theme {
t := Theme{
github.ContributionLevelNone: none,
github.ContributionLevelFirstQuartile: first,
Expand Down

0 comments on commit bafee29

Please sign in to comment.