Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

feat(app): add macOS translucent sidebar (#2593)

Divanshu4a58f615dc13
diff --git a/apps/screenpipe-app-tauri/app/globals.css b/apps/screenpipe-app-tauri/app/globals.css
index 3ffc04a2b..f3e040921 100644
--- a/apps/screenpipe-app-tauri/app/globals.css
+++ b/apps/screenpipe-app-tauri/app/globals.css
@@ -214,6 +214,12 @@
@apply bg-background text-foreground !pointer-events-auto !overscroll-none;
}
+ /* When translucent sidebar is enabled on macOS, the OS handles the background */
+ html.macos-vibrancy,
+ body.macos-vibrancy {
+ background-color: transparent !important;
+ }
+
/* Prevent intermittent scrollbars on Windows overlay — html/body should never scroll,
inner containers handle their own scrolling with scrollbar-hide */
html, body {
@@ -348,6 +354,51 @@
display: none; /* No arrow buttons */
}
+ /* Vibrant sidebar theme — Minimal macOS backdrop */
+ .vibrant-sidebar {
+ /* CRITICAL FIX for macOS WKWebView backdrop-filter flicker */
+ background-color: rgba(0, 0, 0, 0.15) !important;
+ border-color: transparent;
+ }
+ .dark .vibrant-sidebar {
+ background-color: rgba(0, 0, 0, 0.15) !important;
+ }
+ .vibrant-sidebar-border {
+ border-color: transparent;
+ }
+ .vibrant-sidebar-fg {
+ color: hsl(var(--foreground));
+ }
+ .vibrant-sidebar-fg-muted {
+ color: hsl(var(--muted-foreground));
+ }
+ .vibrant-nav-active {
+ color: hsl(var(--foreground));
+ font-weight: 600;
+ }
+ .vibrant-nav-hover:hover {
+ color: hsl(var(--foreground));
+ }
+ .vibrant-nav-item {
+ color: hsl(var(--muted-foreground));
+ }
+ .vibrant-nav-item:hover {
+ color: hsl(var(--foreground));
+ }
+ .vibrant-heading {
+ color: hsl(var(--foreground));
+ }
+ .vibrant-card-border {
+ border-color: hsl(var(--foreground) / 0.1);
+ }
+ .vibrant-btn-border {
+ border-color: hsl(var(--foreground) / 0.2);
+ color: hsl(var(--foreground));
+ }
+ .vibrant-btn-border:hover {
+ color: hsl(var(--foreground) / 0.8);
+ }
+
@keyframes shimmer {
0% {
background-position: -200% 0;
diff --git a/apps/screenpipe-app-tauri/app/home/page.tsx b/apps/screenpipe-app-tauri/app/home/page.tsx
index 0fe7edd82..de8c7e9e0 100644
--- a/apps/screenpipe-app-tauri/app/home/page.tsx
+++ b/apps/screenpipe-app-tauri/app/home/page.tsx
@@ -121,15 +121,33 @@ function SettingsPageContent() {
const { settings } = useSettings();
const teamState = useTeam();
const { isSectionHidden } = useEnterprisePolicy();
+
+ // Default true: treat undefined (settings still loading) as enabled to avoid opaque flash on init
+ const isTranslucent = settings?.translucentSidebar !== false;
// Sidebar collapse state (persisted in localStorage)
const [sidebarCollapsed, setSidebarCollapsed] = useState(false);
+ const [teamPromoDismissed, setTeamPromoDismissed] = useState(false);
useEffect(() => {
const stored = localStorage.getItem("sidebar-collapsed");
if (stored === "true") setSidebarCollapsed(true);
+ if (localStorage.getItem("team-promo-dismissed") === "true") setTeamPromoDismissed(true);
}, []);
+ // Set global transparency when sidebar is translucent
+ // This allows the native macOS WindowEffect to show through the webview
+ useEffect(() => {
+ if (isTranslucent) {
+ document.documentElement.classList.add("macos-vibrancy");
+ document.body.classList.add("macos-vibrancy");
+ return () => {
+ document.documentElement.classList.remove("macos-vibrancy");
+ document.body.classList.remove("macos-vibrancy");
+ };
+ }
+ }, [isTranslucent]);
+
const toggleSidebar = useCallback(() => {
setSidebarCollapsed((prev) => {
const next = !prev;
@@ -374,29 +392,30 @@ function SettingsPageContent() {
const isFullHeight = activeSection === "home" || activeSection === "timeline";
return (
- <div className={cn("bg-background", isFullHeight ? "h-screen overflow-hidden" : "min-h-screen")} data-testid="home-page">
- {/* Transparent titlebar area */}
- <div className="h-8 bg-transparent" data-tauri-drag-region></div>
+ <div className={cn("bg-transparent", isFullHeight ? "h-screen overflow-hidden" : "min-h-screen")} data-testid="home-page">
+ {/* Drag region — always absolute so it works with full-bleed translucent layout */}
+ <div className="absolute top-0 left-0 right-0 h-8 z-10" data-tauri-drag-region />
- <div className="px-4">
- <div className="flex h-[calc(100vh-2rem)] min-h-0">
+ <div className="h-screen flex min-h-0">
{/* Sidebar */}
<TooltipProvider delayDuration={0}>
<div
className={cn(
- "border-r bg-background flex flex-col min-h-0 rounded-tl-lg transition-all duration-200 overflow-x-hidden overflow-y-auto flex-shrink-0",
- sidebarCollapsed ? "w-14" : "w-56",
+ "border-r flex flex-col min-h-0 transition-all duration-300 overflow-x-hidden overflow-y-auto flex-shrink-0 pl-4 pt-8",
+ // When translucent: let vibrancy show through. When disabled: solid bg with transition.
+ isTranslucent ? "vibrant-sidebar" : "bg-background",
+ sidebarCollapsed ? "w-18" : "w-[calc(14rem+1rem)]",
)}
>
- <div className={cn("border-b", sidebarCollapsed ? "px-2 py-3" : "px-4 py-3")}>
+ <div className={cn(isTranslucent ? "vibrant-sidebar-border" : "", "border-b", sidebarCollapsed ? "px-2 py-3" : "px-4 py-3")}>
{/* Row 1: name + phone + collapse */}
<div className={cn("flex items-center", sidebarCollapsed ? "justify-center" : "justify-between")}>
- {!sidebarCollapsed && <h1 className="text-lg font-bold text-foreground">screenpipe</h1>}
+ {!sidebarCollapsed && <h1 className={cn("text-lg font-bold", isTranslucent ? "vibrant-heading" : "text-foreground")}>screenpipe</h1>}
<div className="flex items-center gap-1.5">
<button
onClick={toggleMeeting}
disabled={meetingLoading}
- className="relative flex items-center justify-center h-5 w-5 text-muted-foreground hover:text-foreground transition-colors"
+ className={cn("relative flex items-center justify-center h-5 w-5 transition-colors", isTranslucent ? "vibrant-nav-item" : "text-muted-foreground hover:text-foreground")}
title={manualMeeting ? "stop meeting" : "start meeting"}
>
{manualMeeting && (
@@ -408,7 +427,7 @@ function SettingsPageContent() {
<TooltipTrigger asChild>
<button
onClick={toggleSidebar}
- className="text-muted-foreground hover:text-foreground transition-colors"
+ className={cn("transition-colors", isTranslucent ? "vibrant-nav-item" : "text-muted-foreground hover:text-foreground")}
>
{sidebarCollapsed ? (
<PanelLeftOpen className="h-4 w-4" />
@@ -442,11 +461,11 @@ function SettingsPageContent() {
{groups.map(({ key, icon: Icon, count, title, opacity }) => (
<span key={key} className="flex items-center gap-0.5" title={title}>
<Icon
- className="h-3 w-3 text-foreground transition-opacity duration-500"
+ className={cn("h-3 w-3 transition-opacity duration-500", isTranslucent ? "vibrant-sidebar-fg" : "text-foreground")}
style={{ opacity }}
/>
{count > 1 && (
- <span className="text-[9px] text-foreground/50 font-medium leading-none">{count}</span>
+ <span className={cn("text-[9px] font-medium leading-none", isTranslucent ? "vibrant-sidebar-fg-muted" : "text-foreground/50")}>{count}</span>
)}
</span>
))}
@@ -473,19 +492,23 @@ function SettingsPageContent() {
"w-full flex items-center px-3 py-2 rounded-lg transition-all duration-150 text-left group",
sidebarCollapsed ? "justify-center" : "space-x-2.5",
isActive
- ? "bg-card shadow-sm border border-border text-foreground"
- : "hover:bg-card/50 text-muted-foreground hover:text-foreground",
+ ? isTranslucent
+ ? "vibrant-nav-active"
+ : "bg-card shadow-sm border border-border text-foreground"
+ : isTranslucent
+ ? "vibrant-nav-item vibrant-nav-hover"
+ : "hover:bg-card/50 text-muted-foreground hover:text-foreground",
)}
>
<div className={cn(
"transition-colors flex-shrink-0",
isActive
- ? "text-primary"
- : "text-muted-foreground group-hover:text-foreground"
+ ? isTranslucent ? "" : "text-primary"
+ : isTranslucent ? "" : "text-muted-foreground group-hover:text-foreground"
)}>
{section.icon}
</div>
- {!sidebarCollapsed && <span className="font-medium text-sm truncate">{section.label}</span>}
+ {!sidebarCollapsed && <span className={cn("text-sm truncate", isActive && isTranslucent ? "font-semibold" : "font-medium")}>{section.label}</span>}
</button>
);
if (sidebarCollapsed) {
@@ -504,17 +527,26 @@ function SettingsPageContent() {
<div className="flex-1" />
{/* Team promo card — hidden when user already has a team, sidebar collapsed, or enterprise */}
- {!teamState.team && !sidebarCollapsed && !isSectionHidden("team") && (
- <div className="mx-1 mb-3 p-3 border border-border bg-card">
- <h3 className="text-sm font-medium text-foreground">
+ {!teamState.team && !sidebarCollapsed && !isSectionHidden("team") && !teamPromoDismissed && (
+ <div className={cn("mx-1 mb-3 p-3 border relative group", isTranslucent ? "vibrant-card-border" : "border-border bg-card")}>
+ <button
+ onClick={() => {
+ setTeamPromoDismissed(true);
+ localStorage.setItem("team-promo-dismissed", "true");
+ }}
+ className={cn("absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity", isTranslucent ? "vibrant-nav-item" : "text-muted-foreground hover:text-foreground")}
+ >
+ <X className="h-3.5 w-3.5" />
+ </button>
+ <h3 className={cn("text-sm font-medium", isTranslucent ? "vibrant-heading" : "text-foreground")}>
Add your team to screenpipe
</h3>
- <p className="text-xs text-muted-foreground mt-1">
+ <p className={cn("text-xs mt-1", isTranslucent ? "vibrant-sidebar-fg-muted" : "text-muted-foreground")}>
Push pipe configs and content filters to all members.
</p>
<button
onClick={() => openModal("team")}
- className="mt-2.5 px-3 py-1.5 text-xs font-medium border border-border bg-background hover:bg-foreground hover:text-background transition-colors duration-150"
+ className={cn("mt-2.5 px-3 py-1.5 text-xs font-medium border transition-colors duration-150", isTranslucent ? "vibrant-btn-border" : "border-border bg-background hover:bg-foreground hover:text-background")}
>
ADD YOUR TEAM
</button>
@@ -522,7 +554,7 @@ function SettingsPageContent() {
)}
{/* Bottom items */}
- <div className="space-y-0.5 border-t border-border pt-2">
+ <div className={cn("space-y-0.5 border-t pt-2", isTranslucent ? "vibrant-sidebar-border" : "border-border")}>
{/* Team link — hide invite promo in enterprise (unless team exists) */}
{(!isSectionHidden("team") || teamState.team) && (() => {
const teamLabel = teamState.team
@@ -532,11 +564,12 @@ function SettingsPageContent() {
<button
onClick={() => openModal("team")}
className={cn(
- "w-full flex items-center px-3 py-2 rounded-lg transition-all duration-150 text-left group hover:bg-card/50 text-muted-foreground hover:text-foreground",
+ "w-full flex items-center px-3 py-2 rounded-lg transition-all duration-150 text-left group",
sidebarCollapsed ? "justify-center" : "space-x-2.5",
+ isTranslucent ? "vibrant-nav-item vibrant-nav-hover" : "hover:bg-card/50 text-muted-foreground hover:text-foreground",
)}
>
- <UserPlus className="h-4 w-4 text-muted-foreground group-hover:text-foreground transition-colors flex-shrink-0" />
+ <UserPlus className={cn("h-4 w-4 transition-colors flex-shrink-0", isTranslucent ? "" : "text-muted-foreground group-hover:text-foreground")} />
{!sidebarCollapsed && <span className="font-medium text-sm truncate">{teamLabel}</span>}
</button>
);
@@ -557,11 +590,12 @@ function SettingsPageContent() {
<button
onClick={() => openModal("referral")}
className={cn(
- "w-full flex items-center px-3 py-2 rounded-lg transition-all duration-150 text-left group hover:bg-card/50 text-muted-foreground hover:text-foreground",
+ "w-full flex items-center px-3 py-2 rounded-lg transition-all duration-150 text-left group",
sidebarCollapsed ? "justify-center" : "space-x-2.5",
+ isTranslucent ? "vibrant-nav-item vibrant-nav-hover" : "hover:bg-card/50 text-muted-foreground hover:text-foreground",
)}
>
- <Gift className="h-4 w-4 text-muted-foreground group-hover:text-foreground transition-colors flex-shrink-0" />
+ <Gift className={cn("h-4 w-4 transition-colors flex-shrink-0", isTranslucent ? "" : "text-muted-foreground group-hover:text-foreground")} />
{!sidebarCollapsed && <span className="font-medium text-sm truncate">Get free month</span>}
</button>
);
@@ -586,15 +620,19 @@ function SettingsPageContent() {
"w-full flex items-center px-3 py-2 rounded-lg transition-all duration-150 text-left group",
sidebarCollapsed ? "justify-center" : "space-x-2.5",
settingsModalOpen
- ? "bg-card shadow-sm border border-border text-foreground"
- : "hover:bg-card/50 text-muted-foreground hover:text-foreground",
+ ? isTranslucent
+ ? "vibrant-nav-active"
+ : "bg-card shadow-sm border border-border text-foreground"
+ : isTranslucent
+ ? "vibrant-nav-item vibrant-nav-hover"
+ : "hover:bg-card/50 text-muted-foreground hover:text-foreground",
)}
>
<div className={cn(
"transition-colors flex-shrink-0",
settingsModalOpen
- ? "text-primary"
- : "text-muted-foreground group-hover:text-foreground"
+ ? isTranslucent ? "" : "text-primary"
+ : isTranslucent ? "" : "text-muted-foreground group-hover:text-foreground"
)}>
<SettingsIcon className="h-4 w-4" />
</div>
@@ -626,15 +664,19 @@ function SettingsPageContent() {
"w-full flex items-center px-3 py-2 rounded-lg transition-all duration-150 text-left group",
sidebarCollapsed ? "justify-center" : "space-x-2.5",
isActive
- ? "bg-card shadow-sm border border-border text-foreground"
- : "hover:bg-card/50 text-muted-foreground hover:text-foreground",
+ ? isTranslucent
+ ? "vibrant-nav-active"
+ : "bg-card shadow-sm border border-border text-foreground"
+ : isTranslucent
+ ? "vibrant-nav-item vibrant-nav-hover"
+ : "hover:bg-card/50 text-muted-foreground hover:text-foreground",
)}
>
<div className={cn(
"transition-colors flex-shrink-0",
isActive
- ? "text-primary"
- : "text-muted-foreground group-hover:text-foreground"
+ ? isTranslucent ? "" : "text-primary"
+ : isTranslucent ? "" : "text-muted-foreground group-hover:text-foreground"
)}>
<HelpCircle className="h-4 w-4" />
</div>
@@ -657,7 +699,7 @@ function SettingsPageContent() {
</TooltipProvider>
{/* Content */}
- <div className="flex-1 flex flex-col h-full bg-background min-h-0 rounded-tr-lg relative">
+ <div className={cn("flex-1 flex flex-col h-full bg-background min-h-0 relative", isTranslucent ? "rounded-none" : "rounded-tr-lg")}>
{isFullHeight ? (
<div className="flex-1 min-h-0 overflow-hidden">
{renderMainSection()}
@@ -808,7 +850,6 @@ function SettingsPageContent() {
</div>
)}
</div>
- </div>
</div>
</div>
);
diff --git a/apps/screenpipe-app-tauri/app/providers.tsx b/apps/screenpipe-app-tauri/app/providers.tsx
index 8ba6d1ad4..c762a78a6 100644
--- a/apps/screenpipe-app-tauri/app/providers.tsx
+++ b/apps/screenpipe-app-tauri/app/providers.tsx
@@ -104,15 +104,15 @@ export const Providers = forwardRef<
return (
<NuqsAdapter>
- <ThemeProvider defaultTheme="light" storageKey="screenpipe-ui-theme">
- <SettingsProvider>
+ <SettingsProvider>
+ <ThemeProvider defaultTheme="light" storageKey="screenpipe-ui-theme">
<ChangelogDialogProvider>
<PermissionMonitorProvider>
<PostHogProvider client={posthog}>{children}</PostHogProvider>
</PermissionMonitorProvider>
</ChangelogDialogProvider>
- </SettingsProvider>
- </ThemeProvider>
+ </ThemeProvider>
+ </SettingsProvider>
</NuqsAdapter>
);
});
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
index a304e389e..26f9febad 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
@@ -1192,7 +1192,7 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {
const browserUrl = currentFrame?.devices?.[0]?.metadata?.browser_url;
if (!browserUrl) return null;
return (
- <div className={`absolute ${embedded ? "top-1" : "top-[calc(env(safe-area-inset-top)+4px)]"} left-0 right-0 z-[45] flex justify-center pointer-events-none`}>
+ <div className={`absolute ${embedded ? "top-[56px]" : "top-[calc(env(safe-area-inset-top)+4px)]"} left-0 right-0 z-[45] flex justify-center pointer-events-none`}>
<button
type="button"
className="flex items-center gap-1.5 max-w-lg min-w-0 px-3 py-1 rounded-full bg-black/70 backdrop-blur-sm border border-white/10 hover:bg-black/80 hover:border-white/20 transition-colors cursor-pointer pointer-events-auto"
diff --git a/apps/screenpipe-app-tauri/components/settings/display-section.tsx b/apps/screenpipe-app-tauri/components/settings/display-section.tsx
index e71823f8e..35e2b5f8b 100644
--- a/apps/screenpipe-app-tauri/components/settings/display-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/display-section.tsx
@@ -8,7 +8,8 @@ import { useSettings } from "@/lib/hooks/use-settings";
import { useTheme } from "@/components/theme-provider";
import { Switch } from "@/components/ui/switch";
import { Card, CardContent } from "@/components/ui/card";
-import { Moon, Sun, Monitor, Layers, MessageSquare, FlaskConical, ExternalLink } from "lucide-react";
+import { Moon, Sun, Monitor, Layers, MessageSquare, FlaskConical, ExternalLink, PanelLeft } from "lucide-react";
+import { usePlatform } from "@/lib/hooks/use-platform";
import { HelpTooltip } from "@/components/ui/help-tooltip";
import { useToast } from "@/components/ui/use-toast";
import { Button } from "@/components/ui/button";
@@ -19,6 +20,7 @@ export function DisplaySection() {
const { settings, updateSettings } = useSettings();
const { theme, setTheme } = useTheme();
const { toast } = useToast();
+ const { isMac } = usePlatform();
const handleSettingsChange = (newSettings: Partial<Settings>) => {
if (settings) {
@@ -195,6 +197,34 @@ export function DisplaySection() {
</CardContent>
</Card>
+ {isMac && (
+ <Card className="border-border bg-card">
+ <CardContent className="px-3 py-2.5">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center space-x-2.5">
+ <PanelLeft className="h-4 w-4 text-muted-foreground shrink-0" />
+ <div>
+ <h3 className="text-sm font-medium text-foreground flex items-center gap-1.5">
+ Translucent Sidebar
+ <HelpTooltip text="Apply a macOS vibrancy effect to the sidebar for a frosted glass look." />
+ </h3>
+ <p className="text-xs text-muted-foreground">Frosted glass sidebar effect</p>
+ </div>
+ </div>
+ <Switch
+ checked={settings?.translucentSidebar ?? true}
+ onCheckedChange={(checked) => {
+ handleSettingsChange({ translucentSidebar: checked });
+ toast({
+ title: checked ? "translucent sidebar enabled" : "translucent sidebar disabled",
+ });
+ }}
+ />
+ </div>
+ </CardContent>
+ </Card>
+ )}
+
<Card className="border-border bg-card">
<CardContent className="px-3 py-2.5">
<div className="flex items-center justify-between">
diff --git a/apps/screenpipe-app-tauri/components/theme-provider.tsx b/apps/screenpipe-app-tauri/components/theme-provider.tsx
index c8b4fc40b..dbf68eb10 100644
--- a/apps/screenpipe-app-tauri/components/theme-provider.tsx
+++ b/apps/screenpipe-app-tauri/components/theme-provider.tsx
@@ -2,6 +2,8 @@
import React, { createContext, useContext, useEffect, useState } from "react";
import { type ColorTheme } from "@/lib/constants/colors";
+import { useSettings } from "@/lib/hooks/use-settings";
+import { invoke } from "@tauri-apps/api/core";
interface ThemeProviderProps {
children: React.ReactNode;
@@ -29,19 +31,20 @@ export function ThemeProvider({
storageKey = "screenpipe-ui-theme",
...props
}: ThemeProviderProps) {
- const [theme, setTheme] = useState<ColorTheme | undefined>(undefined);
+ const [theme, setThemeState] = useState<ColorTheme | undefined>(undefined);
const [isLoaded, setIsLoaded] = useState(false);
+ const { updateSettings } = useSettings();
useEffect(() => {
try {
const storedTheme = localStorage?.getItem(storageKey) as ColorTheme;
if (storedTheme) {
- setTheme(storedTheme);
+ setThemeState(storedTheme);
} else {
- setTheme("system");
+ setThemeState("system");
}
} catch {
- setTheme("system");
+ setThemeState("system");
}
setIsLoaded(true);
}, [storageKey]);
@@ -85,14 +88,22 @@ export function ThemeProvider({
const value = {
theme: theme || defaultTheme,
setTheme: (theme: ColorTheme) => {
- try { localStorage?.setItem(storageKey, theme); } catch {}
- setTheme(theme);
+ try {
+ localStorage?.setItem(storageKey, theme);
+ } catch {}
+ setThemeState(theme);
+ updateSettings({ uiTheme: theme });
+ invoke("set_native_theme", { theme }).catch(() => {});
},
toggleTheme: () => {
const currentTheme = theme || defaultTheme;
const newTheme = currentTheme === "light" ? "dark" : "light";
- try { localStorage?.setItem(storageKey, newTheme); } catch {}
- setTheme(newTheme);
+ try {
+ localStorage?.setItem(storageKey, newTheme);
+ } catch {}
+ setThemeState(newTheme);
+ updateSettings({ uiTheme: newTheme });
+ invoke("set_native_theme", { theme: newTheme }).catch(() => {});
},
};
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index 75f04cb0b..a22ca0dad 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -160,6 +160,8 @@ export type Settings = SettingsStore & {
localRetentionEnabled?: boolean;
/** Days to keep data locally before auto-deleting (default: 30) */
localRetentionDays?: number;
+ /** Apply macOS vibrancy effect to sidebar for a translucent glass look */
+ translucentSidebar?: boolean;
/** Notification preferences — which notification sources are enabled */
notificationPrefs?: {
captureStalls: boolean;
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs b/apps/screenpipe-app-tauri/src-tauri/src/commands.rs
index 5b0dd3b4d..39edc43c2 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/commands.rs
@@ -1704,3 +1704,20 @@ pub async fn copy_text_to_clipboard(text: String) -> Result<(), String> {
.map_err(|e| format!("failed to set clipboard: {}", e))?;
Ok(())
}
+
+#[tauri::command]
+#[specta::specta]
+pub fn set_native_theme(app_handle: tauri::AppHandle, theme: String) -> Result<(), String> {
+ info!("setting native theme to: {}", theme);
+ let tauri_theme = match theme.as_str() {
+ "light" => Some(tauri::Theme::Light),
+ "dark" => Some(tauri::Theme::Dark),
+ _ => None,
+ };
+
+ for window in app_handle.webview_windows().values() {
+ let _ = window.set_theme(tauri_theme);
+ }
+
+ Ok(())
+}
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
index 2133fe285..4f5dc8050 100755
--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -921,7 +921,8 @@ async fn main() {
remote_sync_commands::remote_sync_discover_hosts,
remote_sync_commands::remote_sync_start_scheduler,
remote_sync_commands::remote_sync_stop_scheduler,
- remote_sync_commands::remote_sync_scheduler_status
+ remote_sync_commands::remote_sync_scheduler_status,
+ commands::set_native_theme,
])
.setup(move |app| {
//deep link register_all
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/store.rs b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
index 0bec4e4e5..bd3832313 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/store.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
@@ -213,6 +213,14 @@ pub struct SettingsStore {
#[serde(rename = "showRestartNotifications", default)]
pub show_restart_notifications: bool,
+ /// When true, apply macOS vibrancy effect to the sidebar for a translucent look.
+ #[serde(rename = "translucentSidebar", default)]
+ pub translucent_sidebar: bool,
+
+ /// UI theme: "light", "dark", or "system".
+ #[serde(rename = "uiTheme", default = "default_ui_theme")]
+ pub ui_theme: String,
+
/// Catch-all for fields added by the frontend (e.g. chatHistory)
/// that the Rust struct doesn't know about. Without this, `save()` would
/// serialize only known fields and silently wipe frontend-only data.
@@ -228,6 +236,10 @@ fn default_true() -> bool {
true
}
+fn default_ui_theme() -> String {
+ "system".to_string()
+}
+
fn default_overlay_mode() -> String {
#[cfg(target_os = "macos")]
{
@@ -513,6 +525,11 @@ impl Default for SettingsStore {
show_overlay_in_screen_recording: false,
chat_always_on_top: true,
show_restart_notifications: false,
+ #[cfg(target_os = "macos")]
+ translucent_sidebar: true,
+ #[cfg(not(target_os = "macos"))]
+ translucent_sidebar: false,
+ ui_theme: "system".to_string(),
extra: std::collections::HashMap::new(),
}
}
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/window/show.rs b/apps/screenpipe-app-tauri/src-tauri/src/window/show.rs
index 292008394..8ce53e762 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/window/show.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/window/show.rs
@@ -178,6 +178,16 @@ impl ShowRewindWindow {
builder = builder.decorations(true);
}
+ // Apply theme from settings
+ if let Ok(Some(settings)) = SettingsStore::get(app) {
+ let tauri_theme = match settings.ui_theme.as_str() {
+ "light" => Some(tauri::Theme::Light),
+ "dark" => Some(tauri::Theme::Dark),
+ _ => None, // "system" or others
+ };
+ builder = builder.theme(tauri_theme);
+ }
+
builder
}
@@ -1218,9 +1228,22 @@ impl ShowRewindWindow {
Some(p) => format!("/home?section={}", p),
None => "/home".to_string(),
};
+
let builder = self.window_builder(app, &url).focused(true);
#[cfg(target_os = "macos")]
- let builder = builder.hidden_title(true);
+ let builder = {
+ use tauri::window::Color;
+ use tauri::TitleBarStyle;
+ builder
+ .title_bar_style(TitleBarStyle::Overlay)
+ .hidden_title(true)
+ .background_color(Color(0, 0, 0, 1))
+ .effects(tauri::utils::config::WindowEffectsConfig {
+ effects: vec![tauri::window::Effect::Menu],
+ state: Some(tauri::window::EffectState::Active),
+ ..Default::default()
+ })
+ };
let window = builder.build()?;
// Disable WKWebView's native scroll so wheel events reach JavaScript