diff options
| author | GitHub Action <[email protected]> | 2026-01-15 06:04:47 +0000 |
|---|---|---|
| committer | GitHub Action <[email protected]> | 2026-01-15 06:04:47 +0000 |
| commit | 253b7ea78403585db916dc2746d07f622015c597 (patch) | |
| tree | 68b145be595efd0beda934345a62d65fcf3f29cc | |
| parent | 3a9fd1bb36af1b40f88415be6a80785c56f2c3b8 (diff) | |
| download | opencode-253b7ea78403585db916dc2746d07f622015c597.tar.gz opencode-253b7ea78403585db916dc2746d07f622015c597.zip | |
chore: generate
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/component/logo.tsx | 44 |
1 files changed, 27 insertions, 17 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/component/logo.tsx b/packages/opencode/src/cli/cmd/tui/component/logo.tsx index 6fd744794..771962b75 100644 --- a/packages/opencode/src/cli/cmd/tui/component/logo.tsx +++ b/packages/opencode/src/cli/cmd/tui/component/logo.tsx @@ -8,19 +8,9 @@ import { useTheme, tint } from "@tui/context/theme" // ~ = shadow top only (▀ with fg=shadow) const SHADOW_MARKER = /[_^~]/ -const LOGO_LEFT = [ - ` `, - `█▀▀█ █▀▀█ █▀▀█ █▀▀▄`, - `█__█ █__█ █^^^ █__█`, - `▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀~~▀`, -] +const LOGO_LEFT = [` `, `█▀▀█ █▀▀█ █▀▀█ █▀▀▄`, `█__█ █__█ █^^^ █__█`, `▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀~~▀`] -const LOGO_RIGHT = [ - ` ▄ `, - `█▀▀▀ █▀▀█ █▀▀█ █▀▀█`, - `█___ █__█ █__█ █^^^`, - `▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀`, -] +const LOGO_RIGHT = [` ▄ `, `█▀▀▀ █▀▀█ █▀▀█ █▀▀█`, `█___ █__█ █__█ █^^^`, `▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀`] export function Logo() { const { theme } = useTheme() @@ -36,24 +26,44 @@ export function Logo() { const markerIndex = rest.search(SHADOW_MARKER) if (markerIndex === -1) { - elements.push(<text fg={fg} attributes={attrs} selectable={false}>{rest}</text>) + elements.push( + <text fg={fg} attributes={attrs} selectable={false}> + {rest} + </text>, + ) break } if (markerIndex > 0) { - elements.push(<text fg={fg} attributes={attrs} selectable={false}>{rest.slice(0, markerIndex)}</text>) + elements.push( + <text fg={fg} attributes={attrs} selectable={false}> + {rest.slice(0, markerIndex)} + </text>, + ) } const marker = rest[markerIndex] switch (marker) { case "_": - elements.push(<text fg={fg} bg={shadow} attributes={attrs} selectable={false}> </text>) + elements.push( + <text fg={fg} bg={shadow} attributes={attrs} selectable={false}> + {" "} + </text>, + ) break case "^": - elements.push(<text fg={fg} bg={shadow} attributes={attrs} selectable={false}>▀</text>) + elements.push( + <text fg={fg} bg={shadow} attributes={attrs} selectable={false}> + ▀ + </text>, + ) break case "~": - elements.push(<text fg={shadow} attributes={attrs} selectable={false}>▀</text>) + elements.push( + <text fg={shadow} attributes={attrs} selectable={false}> + ▀ + </text>, + ) break } |
