diff --git a/.opencode/plugins/tui-smoke.tsx b/.opencode/plugins/tui-smoke.tsx index 6578156865..ee2820085f 100644 --- a/.opencode/plugins/tui-smoke.tsx +++ b/.opencode/plugins/tui-smoke.tsx @@ -490,10 +490,40 @@ const slot = (input: ReturnType) => ({ id: "workspace-smoke", slots: { home_logo(ctx) { + const map = ctx.theme.current as Record + const get = (name: string, fallback: string) => { + const value = map[name] + if (typeof value === "string") return value + if (value && typeof value === "object") return value as RGBA + return fallback + } + const art = [ + " $$\\", + " $$ |", + " $$$$$$$\\ $$$$$$\\$$$$\\ $$$$$$\\ $$ | $$\\ $$$$$$\\", + "$$ _____|$$ _$$ _$$\\ $$ __$$\\ $$ | $$ |$$ __$$\\", + "\\$$$$$$\\ $$ / $$ / $$ |$$ / $$ |$$$$$$ / $$$$$$$$ |", + " \\____$$\\ $$ | $$ | $$ |$$ | $$ |$$ _$$< $$ ____|", + "$$$$$$$ |$$ | $$ | $$ |\\$$$$$$ |$$ | \\$$\\ \\$$$$$$$\\", + "\\_______/ \\__| \\__| \\__| \\______/ \\__| \\__| \\_______|", + ] + const ink = [ + get("primary", ui.accent), + get("textMuted", ui.muted), + get("info", ui.accent), + get("text", ui.text), + get("success", ui.accent), + get("warning", ui.accent), + get("secondary", ui.accent), + get("error", ui.accent), + ] + return ( - - plugin logo:{input.label} theme:{ctx.theme.selected}/{ctx.theme.mode()} - + + {art.map((line, i) => ( + {line} + ))} + ) }, sidebar_top(ctx, value) {