mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
🎨(plugins): Add theme-specific icon in plugins tab
This commit is contained in:
parent
ded7c20fba
commit
1869709121
2 changed files with 2 additions and 0 deletions
|
@ -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"/>
|
||||
|
||||
|
|
BIN
static/images/preferences/theme-icon-default@2x.png
Normal file
BIN
static/images/preferences/theme-icon-default@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Loading…
Reference in a new issue