Skip to content

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

TypeScript

feat: translucent desktop backdrop for the embedded dashboard

Tashfeen95c3aca0f882
diff --git a/client/src/App.tsx b/client/src/App.tsx
index 948c44f9..5de7b696 100644
--- a/client/src/App.tsx
+++ b/client/src/App.tsx
@@ -182,7 +182,7 @@ function App() {
<QueryClientProvider client={queryClient}>
<BrowserRouter basename={import.meta.env.BASE_URL}>
<AuthGate>
- <div className="min-h-screen bg-background">
+ <div className={`min-h-screen ${isDesktopApp ? 'desktop-backdrop' : 'bg-background'}`}>
<Navbar />
<main className="max-w-6xl mx-auto px-6 py-8">
<Routes>
diff --git a/client/src/index.css b/client/src/index.css
index 878806cb..7ff3bb1a 100644
--- a/client/src/index.css
+++ b/client/src/index.css
@@ -136,6 +136,16 @@
@apply bg-background text-foreground;
font-feature-settings: 'ss01', 'cv11', 'tnum';
}
+ /* Desktop shell (html.desktop set by the app's preload): let the
+ window's vibrancy show through a slightly-translucent backdrop so
+ the dashboard picks up the same glass as the tray popover. No effect
+ in the browser, where .desktop is never set. */
+ html.desktop body {
+ background-color: transparent;
+ }
+ html.desktop .desktop-backdrop {
+ background-color: color-mix(in oklab, var(--background) 86%, transparent);
+ }
code, pre, kbd, samp {
font-family: var(--font-mono);
font-feature-settings: 'ss02', 'ss03';