The open source coding agent.
TypeScript
fix: update desktop initializing splash logo
David Hill0384e6b0e15a
diff --git a/packages/desktop/src/index.tsx b/packages/desktop/src/index.tsxindex 8398f457766..0d9e383790a 100644--- a/packages/desktop/src/index.tsx+++ b/packages/desktop/src/index.tsx@@ -12,7 +12,7 @@ import { relaunch } from "@tauri-apps/plugin-process"import { AsyncStorage } from "@solid-primitives/storage"import { fetch as tauriFetch } from "@tauri-apps/plugin-http"import { Store } from "@tauri-apps/plugin-store"-import { Logo } from "@opencode-ai/ui/logo"+import { Splash } from "@opencode-ai/ui/logo"import { createSignal, Show, Accessor, JSX, createResource, onMount, onCleanup } from "solid-js"import { UPDATER_ENABLED } from "./updater"@@ -357,8 +357,7 @@ function ServerGate(props: { children: (data: Accessor<ServerReadyData>) => JSX.when={serverData.state !== "pending" && serverData()}fallback={<div class="h-screen w-screen flex flex-col items-center justify-center bg-background-base">- <Logo class="w-xl opacity-12 animate-pulse" />- <div class="mt-8 text-14-regular text-text-weak">Initializing...</div>+ <Splash class="w-16 h-20 opacity-50 animate-pulse" /></div>}>diff --git a/packages/ui/src/components/logo.tsx b/packages/ui/src/components/logo.tsxindex 5ddf3fba329..26f312bda75 100644--- a/packages/ui/src/components/logo.tsx+++ b/packages/ui/src/components/logo.tsx@@ -13,6 +13,21 @@ export const Mark = (props: { class?: string }) => {)}+export const Splash = (props: { class?: string }) => {+ return (+ <svg+ data-component="logo-splash"+ classList={{ [props.class ?? ""]: !!props.class }}+ viewBox="0 0 80 100"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path d="M60 80H20V40H60V80Z" fill="var(--icon-base)" />+ <path d="M60 20H20V80H60V20ZM80 100H0V0H80V100Z" fill="var(--icon-strong-base)" />+ </svg>+ )+}+export const Logo = (props: { class?: string }) => {return (<svg