fix PlatformIndicators
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "vencord",
|
"name": "vencord",
|
||||||
"private": "true",
|
"private": "true",
|
||||||
"version": "1.13.10",
|
"version": "1.13.11",
|
||||||
"description": "The cutest Discord client mod",
|
"description": "The cutest Discord client mod",
|
||||||
"homepage": "https://github.com/Vendicated/Vencord#readme",
|
"homepage": "https://github.com/Vendicated/Vencord#readme",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
|
|
||||||
|
|
@ -257,7 +257,7 @@ export const fileUrlPlugin = {
|
||||||
build.onLoad({ filter, namespace: "file-uri" }, async ({ pluginData: { path, uri } }) => {
|
build.onLoad({ filter, namespace: "file-uri" }, async ({ pluginData: { path, uri } }) => {
|
||||||
const { searchParams } = new URL(uri);
|
const { searchParams } = new URL(uri);
|
||||||
const base64 = searchParams.has("base64");
|
const base64 = searchParams.has("base64");
|
||||||
const minify = IS_STANDALONE === true && searchParams.has("minify");
|
const minify = searchParams.has("minify");
|
||||||
const noTrim = searchParams.get("trim") === "false";
|
const noTrim = searchParams.get("trim") === "false";
|
||||||
|
|
||||||
const encoding = base64 ? "base64" : "utf-8";
|
const encoding = base64 ? "base64" : "utf-8";
|
||||||
|
|
@ -281,7 +281,7 @@ export const fileUrlPlugin = {
|
||||||
});
|
});
|
||||||
} else if (path.endsWith(".svg")) {
|
} else if (path.endsWith(".svg")) {
|
||||||
content = optimizeSvg(await readFile(path, "utf-8"), {
|
content = optimizeSvg(await readFile(path, "utf-8"), {
|
||||||
datauri: base64 ? 'base64' : void 0,
|
datauri: base64 ? "base64" : void 0,
|
||||||
multipass: true,
|
multipass: true,
|
||||||
floatPrecision: 2,
|
floatPrecision: 2,
|
||||||
}).data;
|
}).data;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
<svg height="20" width="20" viewBox="0 0 24 24" fill="#000000" xmlns="http://www.w3.org/2000/svg">
|
<svg height="20" width="20" viewBox="0 0 24 24" fill="#123456" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M4 2.5c-1.103 0-2 .897-2 2v11c0 1.104.897 2 2 2h7v2H7v2h10v-2h-4v-2h7c1.103 0 2-.896 2-2v-11c0-1.103-.897-2-2-2H4Zm16 2v9H4v-9h16Z" />
|
<path d="M4 2.5c-1.103 0-2 .897-2 2v11c0 1.104.897 2 2 2h7v2H7v2h10v-2h-4v-2h7c1.103 0 2-.896 2-2v-11c0-1.103-.897-2-2-2H4Zm16 2v9H4v-9h16Z" />
|
||||||
</svg>
|
</svg>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 254 B After Width: | Height: | Size: 254 B |
|
|
@ -1,3 +1,3 @@
|
||||||
<svg height="20" width="20" viewBox="0 0 50 50" fill="#000000" xmlns="http://www.w3.org/2000/svg">
|
<svg height="20" width="20" viewBox="0 0 50 50" fill="#123456" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M14.8 2.7 9 3.1V47h3.3c1.7 0 6.2.3 10 .7l6.7.6V2l-4.2.2c-2.4.1-6.9.3-10 .5zm1.8 6.4c1 1.7-1.3 3.6-2.7 2.2C12.7 10.1 13.5 8 15 8c.5 0 1.2.5 1.6 1.1zM16 33c0 6-.4 10-1 10s-1-4-1-10 .4-10 1-10 1 4 1 10zm15-8v23.3l3.8-.7c2-.3 4.7-.6 6-.6H43V3h-2.2c-1.3 0-4-.3-6-.6L31 1.7V25z" />
|
<path d="M14.8 2.7 9 3.1V47h3.3c1.7 0 6.2.3 10 .7l6.7.6V2l-4.2.2c-2.4.1-6.9.3-10 .5zm1.8 6.4c1 1.7-1.3 3.6-2.7 2.2C12.7 10.1 13.5 8 15 8c.5 0 1.2.5 1.6 1.1zM16 33c0 6-.4 10-1 10s-1-4-1-10 .4-10 1-10 1 4 1 10zm15-8v23.3l3.8-.7c2-.3 4.7-.6 6-.6H43V3h-2.2c-1.3 0-4-.3-6-.6L31 1.7V25z" />
|
||||||
</svg>
|
</svg>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 395 B After Width: | Height: | Size: 395 B |
|
|
@ -1,3 +1,3 @@
|
||||||
<svg height="17" width="17" viewBox="0 0 1000 1500" fill="#000000" xmlns="http://www.w3.org/2000/svg">
|
<svg height="17" width="17" viewBox="0 0 1000 1500" fill="#123456" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M 187 0 L 813 0 C 916.277 0 1000 83.723 1000 187 L 1000 1313 C 1000 1416.277 916.277 1500 813 1500 L 187 1500 C 83.723 1500 0 1416.277 0 1313 L 0 187 C 0 83.723 83.723 0 187 0 Z M 125 1000 L 875 1000 L 875 250 L 125 250 Z M 500 1125 C 430.964 1125 375 1180.964 375 1250 C 375 1319.036 430.964 1375 500 1375 C 569.036 1375 625 1319.036 625 1250 C 625 1180.964 569.036 1125 500 1125 Z" />
|
<path d="M 187 0 L 813 0 C 916.277 0 1000 83.723 1000 187 L 1000 1313 C 1000 1416.277 916.277 1500 813 1500 L 187 1500 C 83.723 1500 0 1416.277 0 1313 L 0 187 C 0 83.723 83.723 0 187 0 Z M 125 1000 L 875 1000 L 875 250 L 125 250 Z M 500 1125 C 430.964 1125 375 1180.964 375 1250 C 375 1319.036 430.964 1375 500 1375 C 569.036 1375 625 1319.036 625 1250 C 625 1180.964 569.036 1125 500 1125 Z" />
|
||||||
</svg>
|
</svg>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 510 B After Width: | Height: | Size: 510 B |
|
|
@ -1,3 +1,3 @@
|
||||||
<svg height="20" width="20" viewBox="0 0 24 24" fill="#000000" xmlns="http://www.w3.org/2000/svg">
|
<svg height="20" width="20" viewBox="0 0 24 24" fill="#123456" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93Zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39Z" />
|
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93Zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39Z" />
|
||||||
</svg>
|
</svg>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 424 B |
|
|
@ -57,7 +57,7 @@ function Icon(svg: string, size = 20) {
|
||||||
{tooltipProps => (
|
{tooltipProps => (
|
||||||
<img
|
<img
|
||||||
{...tooltipProps}
|
{...tooltipProps}
|
||||||
src={"data:image/svg+xml;utf8," + encodeURIComponent(svg.replace("#000000", color))}
|
src={"data:image/svg+xml;utf8," + encodeURIComponent(svg.replace("#123456", color))}
|
||||||
height={size - (small ? 3 : 0)}
|
height={size - (small ? 3 : 0)}
|
||||||
width={size - (small ? 3 : 0)}
|
width={size - (small ? 3 : 0)}
|
||||||
/>
|
/>
|
||||||
|
|
@ -150,7 +150,7 @@ function getBadges({ userId }: BadgeUserArgs): ProfileBadge[] {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
description: tooltip,
|
description: tooltip,
|
||||||
iconSrc: "data:image/svg+xml;utf8," + encodeURIComponent(icon.svg.replace("#000000", colorMap[status] ?? colorMap.offline)),
|
iconSrc: "data:image/svg+xml;utf8," + encodeURIComponent(icon.svg.replace("#123456", colorMap[status] ?? colorMap.offline)),
|
||||||
props: {
|
props: {
|
||||||
style: { width: icon.size, height: icon.size },
|
style: { width: icon.size, height: icon.size },
|
||||||
},
|
},
|
||||||
|
|
|
||||||