mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 05:06:53 +08:00
fix(translate): Use an icon for the translate button
This commit is contained in:
parent
ee78090ce0
commit
af75a5170c
2 changed files with 2 additions and 1 deletions
BIN
examples/N1-Composer-Translate/assets/translate-icon@2x.png
Normal file
BIN
examples/N1-Composer-Translate/assets/translate-icon@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
|
@ -71,7 +71,8 @@ class TranslateButton extends React.Component
|
|||
#
|
||||
_renderButton: =>
|
||||
<button className="btn btn-toolbar">
|
||||
Translate <span style={fontSize: "9px", verticalAlign: "middle"}>▼</span>
|
||||
<RetinaImg mode={RetinaImg.Mode.ContentIsMask} url="nylas://N1-Composer-Translate/assets/translate-icon@2x.png" style={}/>
|
||||
<span style={fontSize: "9px", verticalAlign: "top"}>▼</span>
|
||||
</button>
|
||||
|
||||
_onTranslate: (lang) =>
|
||||
|
|
Loading…
Reference in a new issue