Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Feature) New color palette for NW account #39

Merged
merged 2 commits into from
Jul 26, 2018
Merged

Conversation

vbaranov
Copy link
Collaborator

Closes #38

  • npm jazzicon is swaped with npm rockicon to support arbitrary colors palette.
  • NW colors palette is added

@@ -37,7 +38,8 @@ IconFactory.prototype.generateIdenticonSvg = function (address, diameter) {
// creates a new identicon
IconFactory.prototype.generateNewIdenticon = function (address, diameter) {
var numericRepresentation = jsNumberForAddress(address)
var identicon = this.jazzicon(diameter, numericRepresentation)
this.jazzicon.setColorsPalette(colors)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woudln't it make more sense to have this setColorsPalette in the constructor, called just once? Or is there a reason to set it each time an icon is generated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fvictorio makes sense, done, tnx

@@ -37,6 +38,7 @@ IconFactory.prototype.generateIdenticonSvg = function (address, diameter) {
// creates a new identicon
IconFactory.prototype.generateNewIdenticon = function (address, diameter) {
var numericRepresentation = jsNumberForAddress(address)
this.jazzicon.setColorsPalette(colors)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@vbaranov vbaranov merged commit 843f437 into develop Jul 26, 2018
@ghost ghost removed the awaiting for review label Jul 26, 2018
This was referenced Aug 3, 2018
@vbaranov vbaranov deleted the nifty-color-palette branch August 8, 2018 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants