Skip to content

Commit 0384e6b

Browse files
committed
fix: update desktop initializing splash logo
1 parent c3d3356 commit 0384e6b

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

packages/desktop/src/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { relaunch } from "@tauri-apps/plugin-process"
1212
import { AsyncStorage } from "@solid-primitives/storage"
1313
import { fetch as tauriFetch } from "@tauri-apps/plugin-http"
1414
import { Store } from "@tauri-apps/plugin-store"
15-
import { Logo } from "@opencode-ai/ui/logo"
15+
import { Splash } from "@opencode-ai/ui/logo"
1616
import { createSignal, Show, Accessor, JSX, createResource, onMount, onCleanup } from "solid-js"
1717

1818
import { UPDATER_ENABLED } from "./updater"
@@ -357,8 +357,7 @@ function ServerGate(props: { children: (data: Accessor<ServerReadyData>) => JSX.
357357
when={serverData.state !== "pending" && serverData()}
358358
fallback={
359359
<div class="h-screen w-screen flex flex-col items-center justify-center bg-background-base">
360-
<Logo class="w-xl opacity-12 animate-pulse" />
361-
<div class="mt-8 text-14-regular text-text-weak">Initializing...</div>
360+
<Splash class="w-16 h-20 opacity-50 animate-pulse" />
362361
</div>
363362
}
364363
>

packages/ui/src/components/logo.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ export const Mark = (props: { class?: string }) => {
1313
)
1414
}
1515

16+
export const Splash = (props: { class?: string }) => {
17+
return (
18+
<svg
19+
data-component="logo-splash"
20+
classList={{ [props.class ?? ""]: !!props.class }}
21+
viewBox="0 0 80 100"
22+
fill="none"
23+
xmlns="http://www.w3.org/2000/svg"
24+
>
25+
<path d="M60 80H20V40H60V80Z" fill="var(--icon-base)" />
26+
<path d="M60 20H20V80H60V20ZM80 100H0V0H80V100Z" fill="var(--icon-strong-base)" />
27+
</svg>
28+
)
29+
}
30+
1631
export const Logo = (props: { class?: string }) => {
1732
return (
1833
<svg

0 commit comments

Comments
 (0)