Theseus 0.3.113: AI picker shows the real brand favicons
The ChatGPT, Grok, Gemini and Phind rows in the sidebar AI picker now pull each site's own favicon through the same fetch-and-cache path custom engines already use. The old placeholder color-letter tiles I shipped in 0.3.106 are removed; the engine's sym emoji is the pre-fetch fallback until the real favicon lands (cached per profile after that). Change: fall back from bundledIcon(id) to customFavicon(https://<fav>/) for built-in engines when no bundled file exists. Perplexity keeps its existing bundled perplexity.png.
This commit is contained in:
parent
9095a5ecf9
commit
bd55e75536
6 changed files with 7 additions and 6 deletions
|
|
@ -1 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="ChatGPT"><rect width="64" height="64" rx="14" fill="#10a37f"/><text x="32" y="42" text-anchor="middle" font-family="system-ui,-apple-system,sans-serif" font-weight="800" font-size="34" fill="#ffffff">C</text></svg>
|
||||
|
Before Width: | Height: | Size: 298 B |
|
|
@ -1 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="Gemini"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#4b7bec"/><stop offset="1" stop-color="#8e65d9"/></linearGradient></defs><rect width="64" height="64" rx="14" fill="url(#g)"/><text x="32" y="42" text-anchor="middle" font-family="system-ui,-apple-system,sans-serif" font-weight="800" font-size="34" fill="#ffffff">G</text></svg>
|
||||
|
Before Width: | Height: | Size: 456 B |
|
|
@ -1 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="Grok"><rect width="64" height="64" rx="14" fill="#121418"/><text x="32" y="42" text-anchor="middle" font-family="system-ui,-apple-system,sans-serif" font-weight="800" font-size="34" fill="#e7eaf1">G</text></svg>
|
||||
|
Before Width: | Height: | Size: 295 B |
|
|
@ -1 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="Phind"><rect width="64" height="64" rx="14" fill="#0b0e14"/><text x="32" y="42" text-anchor="middle" font-family="system-ui,-apple-system,sans-serif" font-weight="800" font-size="34" fill="#36c7a0">P</text></svg>
|
||||
|
Before Width: | Height: | Size: 296 B |
7
main.js
7
main.js
|
|
@ -288,8 +288,13 @@ function isInstalled(id) {
|
|||
return (settings.installedEngines || DEFAULT_ENABLED).includes(id);
|
||||
}
|
||||
function allEngines() {
|
||||
// Built-in engines without a bundled icon fall back to the same
|
||||
// fetch-and-cache path custom engines use — pulls the site's own
|
||||
// /favicon.ico once and remembers it per profile, so the picker shows
|
||||
// the real brand mark instead of the sym glyph. The emoji sym renders
|
||||
// first and the real icon replaces it on the next emit after fetch.
|
||||
const list = Object.entries(SEARCH_ENGINES).map(([id, e]) =>
|
||||
({ id, name: e.name, sym: e.sym, favicon: bundledIcon(id), kind: e.kind || "search", tier: e.tier || "catalog", builtin: true, installed: isInstalled(id), enabled: isEnabled(id) && !e.frozen, frozen: e.frozen || null }));
|
||||
({ id, name: e.name, sym: e.sym, favicon: bundledIcon(id) || (e.fav ? customFavicon("https://" + e.fav + "/") : null), kind: e.kind || "search", tier: e.tier || "catalog", builtin: true, installed: isInstalled(id), enabled: isEnabled(id) && !e.frozen, frozen: e.frozen || null }));
|
||||
for (const c of settings.customEngines || [])
|
||||
list.push({ id: c.id, name: c.name, sym: c.sym || "🔍", favicon: customFavicon(c.url), kind: c.kind || "search", tier: "custom", builtin: false, installed: true, enabled: isEnabled(c.id) });
|
||||
// Apply the user's custom order; ids not in engineOrder keep their natural order (stable sort).
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "theseus-navigator",
|
||||
"version": "0.3.112",
|
||||
"version": "0.3.113",
|
||||
"license": "MPL-2.0",
|
||||
"description": "Theseus Navigator — a browser that follows the thread. By Silent Mode, a Deviant project.",
|
||||
"author": "Silent Mode",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue