mirror of
https://github.com/MAGICGrants/btcpayserver-monero-plugin.git
synced 2026-01-08 02:23:51 -05:00
Use SVG for monero logo instead of inline data
This commit is contained in:
@@ -53,4 +53,7 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\btcpayserver\BTCPayServer\BTCPayServer.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="monero.svg" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BTCPayServer.Plugins.Monero
|
||||
{
|
||||
internal class MoneroImages
|
||||
{
|
||||
public const string Logo = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3C!--%20Generator%3A%20Adobe%20Illustrator%2019.0.0%2C%20SVG%20Export%20Plug-In%20.%20SVG%20Version%3A%206.00%20Build%200)%20%20--%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Capa_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Ccircle%20style%3D%22fill%3A%23F0EFEB%3B%22%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22256%22%2F%3E%3Cpath%20style%3D%22fill%3A%234C4C4C%3B%22%20d%3D%22M364.2%2C393.163h107.979c-45.411%2C71.439-125.262%2C118.836-216.178%2C118.836S85.235%2C464.603%2C39.824%2C393.163h107.969V257.328l108.209%2C108.146L364.2%2C257.328V393.163z%22%2F%3E%3Cpath%20style%3D%22fill%3A%23FF6600%3B%22%20d%3D%22M512%2C256.001c0%2C28.599-4.692%2C56.1-13.343%2C81.784H421.21V122.537L256.002%2C286.062L90.794%2C122.537v215.248H13.346C4.694%2C312.102%2C0.003%2C284.6%2C0.003%2C256.001c0-141.384%2C114.614-255.998%2C255.998-255.998S512%2C114.616%2C512%2C256.001z%22%2F%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E";
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ public class MoneroPlugin : BaseBTCPayServerPlugin
|
||||
"XMR_X = XMR_BTC * BTC_X",
|
||||
"XMR_BTC = kraken(XMR_BTC)"
|
||||
},
|
||||
CryptoImagePath = MoneroImages.Logo,
|
||||
CryptoImagePath = "monero.svg",
|
||||
UriScheme = "monero"
|
||||
};
|
||||
var blockExplorerLink = chainName == ChainName.Mainnet
|
||||
|
||||
40
Plugins/Monero/monero.svg
Normal file
40
Plugins/Monero/monero.svg
Normal file
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<circle style="fill:#F0EFEB;" cx="256" cy="256" r="256"/>
|
||||
<path style="fill:#4C4C4C;" d="M364.2,393.163h107.979c-45.411,71.439-125.262,118.836-216.178,118.836
|
||||
S85.235,464.603,39.824,393.163h107.969V257.328l108.209,108.146L364.2,257.328V393.163z"/>
|
||||
<path style="fill:#FF6600;" d="M512,256.001c0,28.599-4.692,56.1-13.343,81.784H421.21V122.537L256.002,286.062L90.794,122.537
|
||||
v215.248H13.346C4.694,312.102,0.003,284.6,0.003,256.001c0-141.384,114.614-255.998,255.998-255.998S512,114.616,512,256.001z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 995 B |
Reference in New Issue
Block a user