-
Notifications
You must be signed in to change notification settings - Fork 44
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
Conversation
old-ui/lib/icon-factory.js
Outdated
@@ -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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
ui/lib/icon-factory.js
Outdated
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Closes #38
jazzicon
is swaped with npmrockicon
to support arbitrary colors palette.