Commit bfbb6ebc90bd52679e1ca0b620088cac80d910e4
1 parent
cba854b3
Exists in
master
config accepts custom palette arguements
Showing
2 changed files
with
9 additions
and
1 deletions
Show diff stats
lib/letter_avatar/colors.rb
lib/letter_avatar/configuration.rb
... | ... | @@ -24,6 +24,14 @@ module LetterAvatar |
24 | 24 | @colors_palette = v if Colors::PALETTES.include?(v) |
25 | 25 | end |
26 | 26 | |
27 | + def custom_palette | |
28 | + @custom_palette ||= nil | |
29 | + end | |
30 | + | |
31 | + def custom_palette=(v) | |
32 | + @custom_palette = v | |
33 | + end | |
34 | + | |
27 | 35 | def weight |
28 | 36 | @weight ||= 300 |
29 | 37 | end | ... | ... |