Skip to content

0.29.0

Compare
Choose a tag to compare
@bpierre bpierre released this 24 Jan 11:44
· 481 commits to master since this release
v0.29.0

EthIdenticon (https://github.com/aragon/aragon-ui/pull/282)

image

  • Follows and abstract the exact settings that Etherscan and Mist are using: number of pixels, color settings.
  • Use a simplified scale prop to change its size, rather than a scale + size combination. The reason why the size is not expressed in pixels is because the canvas algorithm doesn’t render well in intermediate sizes. It is therefore recommended to use integers (.5 increments are working well too).
  • Adapts to the screen resolution.

Usage examples

Default (24x24px):

<EthIdenticon address="0x09ABDb7947D780FBa0807e401da812fcE3F165a7" />

With a size doubled (2 = 48 x 48px) and a radius in px:

<EthIdenticon
  scale={2}
  radius={5}
  address="0x09ABDb7947D780FBa0807e401da812fcE3F165a7"
/>

Other changes