🎨(plugins): Add theme-specific icon in plugins tab

This commit is contained in:
Jackie Luo 2016-03-14 17:55:25 -07:00
parent 32a47bcb7a
commit e5c2075d26
2 changed files with 2 additions and 0 deletions

View file

@ -17,6 +17,8 @@ class Package extends React.Component
if @props.package.icon
icon = <img src="nylas://#{@props.package.name}/#{@props.package.icon}" style={width:27, alignContent: 'center', objectFit: 'scale-down'} />
else if @props.package.theme
icon = <RetinaImg name="theme-icon-default.png"/>
else
icon = <RetinaImg name="plugin-icon-default.png"/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB