feat(webui): smooth theme changes and sun-moon transitions (#6450)
* feat(webui): smooth theme changes and sun-moon transitions * test(webui): respect theme cooldown in diagram checks
This commit is contained in:
1 parent
4f7c4f0885
commit
3ede000ad4
12 files changed
+305
-17
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import { ThreadComposer } from "@/components/thread/ThreadComposer";
|
||||
import { ThreadHeader } from "@/components/thread/ThreadHeader";
|
||||
import { ThemeProvider, useTheme } from "@/hooks/useTheme";
|
||||
|
||||
export function ThemeToggleFixture() {
|
||||
const { theme, toggle } = useTheme();
|
||||
return (
|
||||
<ThemeProvider theme={theme}>
|
||||
<main className="thread-workspace relative flex h-screen flex-col justify-center gap-8 bg-background px-6">
|
||||
<ThreadHeader title="Theme preview" hideTitle theme={theme} onToggleTheme={toggle} onToggleSidebar={() => {}} />
|
||||
<div className="workbench-body bg-background">
|
||||
<section className="workbench-pane flex flex-col gap-8 bg-background">
|
||||
<h1 data-testid="hero-greeting" className="text-center text-4xl text-foreground">Where should we start?</h1>
|
||||
<ThreadComposer variant="hero" onSend={() => {}} />
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user