fix: always render wordmark via protocol auto-resolution; disable update checks by default

This commit is contained in:
2026-08-21 16:07:45 -05:00
parent e8f2f2b822
commit 140658c526
2 changed files with 5 additions and 20 deletions
+3 -19
View File
@@ -1,5 +1,4 @@
import { useRenderer } from "@opentui/solid"
import { createSignal, For, onMount, type JSX } from "solid-js"
import { For, createSignal, type JSX } from "solid-js"
import { RGBA, TextAttributes } from "@opentui/core"
import { tint, useTheme } from "../context/theme"
import { logo } from "../logo"
@@ -10,24 +9,8 @@ import wordmark from "../assets/neuron-wordmark.png" with { type: "file" }
// block-letter ASCII logo.
export function Logo() {
const { theme } = useTheme()
const renderer = useRenderer()
const [useImage, setImage] = createSignal(false)
const [imageFailed, setImageFailed] = createSignal(false)
onMount(() => {
// capability info lands asynchronously after startup; only trust an
// explicit positive detection
const caps = (renderer as { capabilities?: { kitty_graphics?: boolean; iterm2?: boolean } }).capabilities
if (caps?.kitty_graphics || caps?.iterm2) {
setImage(true)
return
}
const onCaps = (next: { kitty_graphics?: boolean; iterm2?: boolean }) => {
if (next?.kitty_graphics || next?.iterm2) setImage(true)
}
renderer.on("capabilities", onCaps)
})
const renderLine = (line: string, fg: RGBA, bold: boolean): JSX.Element[] => {
const shadow = tint(theme.background, fg, 0.25)
const attrs = bold ? TextAttributes.BOLD : undefined
@@ -68,7 +51,7 @@ export function Logo() {
})
}
if (useImage() && !imageFailed()) {
if (!imageFailed()) {
return (
<box height={7}>
<image
@@ -76,6 +59,7 @@ export function Logo() {
width={34}
height={6}
fit="fit"
protocol="auto"
onError={() => setImageFailed(true)}
/>
</box>