fix: solid color SVGs for Codex + opencode (no gradients)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const { Plugins, Actions, log } = require('./utils/plugin');
|
||||
const { Plugins, Actions, log } = require('./utils/plugin');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const os = require('os');
|
||||
@@ -107,7 +107,7 @@ function setDisplay(ctx, state) {
|
||||
var d = STATUS[state] || STATUS['idle'];
|
||||
var ss = states[ctx];
|
||||
plugin.setTitle(ctx, d.title);
|
||||
if (state === 'idle' && ss && ss.logoUri) plugin.setImage(ctx, ss.logoUri);
|
||||
if (state === 'idle' && ss && ss.logoUri) { plugin.setTitle(ctx, ''); plugin.setImage(ctx, ss.logoUri); }
|
||||
else plugin.setImage(ctx, 'data:image/svg+xml;charset=utf-8,' + makeSvg(d.fill, d.title, d.blink, d.breathe));
|
||||
}
|
||||
|
||||
|
||||
@@ -1 +1,6 @@
|
||||
<svg fill="none" height="2500" viewBox="0 0 24 24" width="2500" xmlns="http://www.w3.org/2000/svg"><title>Codex</title><path d="M19.503 0H4.496A4.496 4.496 0 000 4.496v15.007A4.496 4.496 0 004.496 24h15.007A4.496 4.496 0 0024 19.503V4.496A4.496 4.496 0 0019.503 0z" fill="#fff"></path><path d="M9.064 3.344a4.578 4.578 0 012.285-.312c1 .115 1.891.54 2.673 1.275.01.01.024.017.037.021a.09.09 0 00.043 0 4.55 4.55 0 013.046.275l.047.022.116.057a4.581 4.581 0 012.188 2.399c.209.51.313 1.041.315 1.595a4.24 4.24 0 01-.134 1.223.123.123 0 00.03.115c.594.607.988 1.33 1.183 2.17.289 1.425-.007 2.71-.887 3.854l-.136.166a4.548 4.548 0 01-2.201 1.388.123.123 0 00-.081.076c-.191.551-.383 1.023-.74 1.494-.9 1.187-2.222 1.846-3.711 1.838-1.187-.006-2.239-.44-3.157-1.302a.107.107 0 00-.105-.024c-.388.125-.78.143-1.204.138a4.441 4.441 0 01-1.945-.466 4.544 4.544 0 01-1.61-1.335c-.152-.202-.303-.392-.414-.617a5.81 5.81 0 01-.37-.961 4.582 4.582 0 01-.014-2.298.124.124 0 00.006-.056.085.085 0 00-.027-.048 4.467 4.467 0 01-1.034-1.651 3.896 3.896 0 01-.251-1.192 5.189 5.189 0 01.141-1.6c.337-1.112.982-1.985 1.933-2.618.212-.141.413-.251.601-.33.215-.089.43-.164.646-.227a.098.098 0 00.065-.066 4.51 4.51 0 01.829-1.615 4.535 4.535 0 011.837-1.388zm3.482 10.565a.637.637 0 000 1.272h3.636a.637.637 0 100-1.272h-3.636zM8.462 9.23a.637.637 0 00-1.106.631l1.272 2.224-1.266 2.136a.636.636 0 101.095.649l1.454-2.455a.636.636 0 00.005-.64L8.462 9.23z" fill="url(#lobe-icons-codex-_R_0_)"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-codex-_R_0_" x1="12" x2="12" y1="3" y2="21"><stop stop-color="#B1A7FF"></stop><stop offset=".5" stop-color="#7A9DFF"></stop><stop offset="1" stop-color="#3941FF"></stop></linearGradient></defs></svg>
|
||||
<svg fill="none" height="144" viewBox="0 0 144 144" width="144" xmlns="http://www.w3.org/2000/svg">
|
||||
<title>Codex</title>
|
||||
<polygon points="72,12 130,48 130,120 72,156 14,120 14,48" fill="none" stroke="#6366f1" stroke-width="6"/>
|
||||
<text x="72" y="80" text-anchor="middle" font-family="Arial,sans-serif" font-weight="bold" font-size="52" fill="#6366f1">CX</text>
|
||||
<text x="72" y="118" text-anchor="middle" font-family="Arial,sans-serif" font-size="16" fill="#818cf8">Codex</text>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 490 B |
@@ -1 +1,5 @@
|
||||
<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>opencode</title><path d="M16 6H8v12h8V6zm4 16H4V2h16v20z"></path></svg>
|
||||
<svg fill="none" height="144" viewBox="0 0 144 144" width="144" xmlns="http://www.w3.org/2000/svg">
|
||||
<title>opencode</title>
|
||||
<rect x="24" y="24" width="96" height="96" rx="16" fill="none" stroke="#06b6d4" stroke-width="5"/>
|
||||
<text x="52" y="92" font-family="monospace" font-size="64" fill="#06b6d4">>_</text>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 235 B After Width: | Height: | Size: 323 B |
Reference in New Issue
Block a user